- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2022 08:37 AM
Hi Everyone,
I have "Re-Assess" UI action that I need to display a pop-up for with a comment box. They need to write the reason for the Re-Assess.
After they click ok, the reason comment should populates in worknote.
I have create UI Page for this.
and Re-Assess UI Action
but it's not working can someone help me on this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 10:25 PM
Hi Anubhav,
UI Page
UI Action
Now the issue is am not able to add Re-Assess Reason in WorkNote when problem task is in close state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 10:40 PM
Hi Anubhav,
I have checked with this as well but able to add worknote at close state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2022 10:48 AM
Hi @Arun33
As your requirement is simple and just need 1 input on pop - up dialog box, you can simply use 'prompt()' function on your client side UI Action script.
Please refer sample code to show how prompt() function works:
var prmpt= prompt("Please povide reason for re-assess."); // You can put your pop up message.
g_form.setValue('work_notes', prmpt);
Can refer below link for further details about prompt() function.
https://servicenowguru.com/scripting/client-scripts-scripting/javascript-popup-boxes-servicenow/
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 09:47 PM
Hi Anubhav,
Issue is if problem task is in close state i am not able to add work note though pop-up dialog box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 10:18 PM
Hi @Arun33
Can you share your updated configuration for the same.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 10:25 PM
Hi Anubhav,
UI Page
UI Action
Now the issue is am not able to add Re-Assess Reason in WorkNote when problem task is in close state.