- My View
I have a question I was hoping someone could help me with.
We have an RP with a few fields. One field references our incident categories (u_category) for the end user to be able to select through a certain amount of categories. A few of these categories trigger an "Autoclose" rule that closes the ticket out and sends an email out to another group that doesnt use servicenow to handle through email management.
My question is, that if one of the categories triggers an autoclose process, is there a way i can have a pop up on submit when the end user is done filling out the form ?
I think you will find this article useful
It explain how to use a UI Action as client/server.
This means that at submission you can trigger a pop-up for the user or an alert
I hope this will help/answer you and answer and if it does please mark it
So if i reference the autoclose category(s) sys ID in the paste below, that will make it pop up on submission of those categories and only those categories ?
current.<field_name> = <value>; <---- here is where i would put the category sysID ?
gs.addInfoMessage('You did it!');
The code you have pasted will not work with record producer.
In the script section you can do the gliderecord and can check for the auto-close category then you can use gs.addInfoMessage('Your msg') to show the msg.
Hope this helps.
ok ill give this a test. Thank you.
NP Brian. Do let me know in case you still face any issue.
Yes, You can implemement popup on submit of record producer.
Please refer below post.
Please mark answer as Correct, helpful as appropriate.
I was only looking to have the pop up show on certain categories. I had tested this option the other day, but it always pops up regardless of category selection. I dont know enough scripting to be able to reference the category that the user selected for this message to pop up. Appreciate your guidance though. Thank you.
You can use an onsubmit client script to show the popup.
If you want simple pop up msg then use alert and if you want any confirmation for user the use confirm box.
Hope this helps.