How to call UI Action from Catalog Client Script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2023 11:40 PM
Hello everyone,
We have an UI Action to perform uncheck on a check box when some conditional are met.
Please let us know if it is possible to call an UI Action from Catalog Client Script?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2023 11:43 PM
Hello @Radhika11
Plz refer the below link for your query :-
https://www.basicoservicenowlearning.in/2020/08/call-ui-script-from-client-script.html
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 07:09 PM
I reviewed the link you provided. It is for Client Script calling UI Script. I would like to use Client Script to call an UI Action Button. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2023 11:56 PM
Hello @Radhika11 ,
I think you cannot call aUI action through client script .
So basically when a condition is met that UI action is clicked by user and then a check box is getting un checked right ?
You can perform the same logic in client script may be precisely in an on change client script and then check the condition and if matches set the check box to false you g_form.setValue();
I hope i understood the problem clearly. Let me know if this makes sense
If it helps you
Mark the answer correct
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 07:06 PM
I do understand your point and I’m totally agreed with your suggestion using Client Script to set the check box value. I have tried it in Client Script, but I could not get it to work. Could you please provide an example?
Thank you