when request_state in sc_request changes to closed_cancelled, need to create custom pop up

praveen1231
Tera Contributor

Hi all,

when request_state in sc_request changes to closed_cancelled, need to create custom pop up with submit and go back button. Only after saying the reason for cancellation the form need to be saved in servicenow. And those reason should map to work_notes in RITM and sc_task.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @praveen1231 

 

If I  am not wrong there is no OOTB cancel field on REQ/ RITM table so to achive this

- Need to create a new field

- Then on client script on submit - call a UI page, and add that field.

 

You will get examples in OOTB, please give a try. 

*************************************************************************************************************
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]

****************************************************************************************************************

@Dr Atul G- LNG  Thanks for your help can you please share the script for it.

Hi @praveen1231 

 

Sorry to say, but I dont have script, you can try at your end and share feedback. More you do more you learn,.

 

Also please look @Mark Manders answer as well, which make sense to me. 

*************************************************************************************************************
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 Manders
Mega Patron

In OOB config, the request is often closed automatically (like canceling a ritm/sc_task) or rejecting approval. How are you doing it? Is it manually clicking a button to close cancel, to which the popup should show? It's nearly impossible to get a popup for the sc_request table to popup when you just canceled a ritm form (and most likely are already on the next page).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark