Show UI Action form button during choice field on change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2020 01:48 AM
Hello Snowers,
I have a UI Action form button "Send Notification", which has to be shown only when a certain value is chosen from the status choice list.
I have provided the condition but it is working only when the form is loading. is there a way to make this happen without saving the form and reloading it.
The UI Action i configured.
Also a clarification, does the UI action form button gets executed only during a form load?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2020 02:03 AM
Hi Andrew,
Please refer the below link it might be helpful:-
Let me know if you have any question !!!
Thanks,
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2020 04:19 AM
Hi Priya,
Thanks for your response.
I tried using the same code in a client script, as there was a onchange client script present already,
Even after i checked the isolate script check box, i am facing the below error.
TypeError: $$ is not a function function () { [native code] }
I used this code "$$('send_notification')[0].show(); "
kindly help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2020 09:35 PM
Hey Andrew,
Make "Isolate" checkbox to false then try to execute.
Thanks,
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2020 04:18 AM
Hello,
Thanks for your response.
I tried using the same code in a client script, as there was a onchange client script present already,
Even after i checked the isolate script check box, i am facing the below error.
TypeError: $$ is not a function function () { [native code] }
I used this code "$$('send_notification')[0].show(); "
kindly help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2020 06:05 AM
Hi Andrew,
Isolate script field should be set to false;
Also can you try
$('send_notification')[0].show();
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader