- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2023 09:00 PM
I would like to use an interceptor (sys_wizard) to change the record form screen after the user clicks the new button.
The image to be implemented is the screen when you press the new button on the list screen of the Task [Task] table.
I don't know how to use interceptors.
Is the new button a UI action?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2023 06:33 AM
Hi @bonsai
I am not sue but code writing is not possible or work here. The only this if a user click /select the onhold will take to new page/ form. This is what interceptor do.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2023 09:41 PM
I feel like I somehow understand how to use it, but I don't know what to write in the button type script.
When I click the execute button based on the value selected in the options, I want to set the selected value on the new record screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 12:56 AM
Hi @bonsai
Greetings!!
An interceptor creates an interim step between requesting a new record and it being created. An example is when you click on create new in the change request table you are taken to a landing screen where you can choose which type of change you want to raise, standard, normal or emergency.
Have a look on Interceptor , Create Change
https://INSTANCENMAE.service-now.com/now/nav/ui/classic/params/target/sys_wizard_list.do%3Fsysparm_u...
I feel like I somehow understand how to use it, but I don't know what to write in the button type script.
Atul: What button you are referring here @bonsai . The button on form is called UI action not the interceptor.
When I click the execute button based on the value selected in the options, I want to set the selected value on the new record screen.
Atul: As per my understanding you are looking for set value based on selected field. Please provide more details to help you.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 05:51 AM
Create an interceptor like below
Display status as a choice for the user to select
This is the run button you want to display in your interceptor.
I don't know what script to set in the red circle script field. . .
I just need to know how to get the choices.
The interceptor below is the completed version.
There is no script on the run button yet, so it will not be processed even if you press the button.
I would like to know a script to get the value of the selected item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 08:00 AM
Hi @bonsai
Greetings!!
Sorry but i am not getting the use case to build this interceptor. The value / option you show (new/ onhold) are state not the new work / task type.
Could you please explain if a user click on execute button what he/she can see and full use case what you want to achieve.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************