How to call UI Action from Catalog Client Script?

Radhika11
Tera Contributor

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 

 

4 REPLIES 4

Samaksh Wani
Giga Sage
Giga Sage

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

Hi @Samaksh Wani 

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

Mohith Devatte
Tera Sage
Tera Sage

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

Hi @Mohith Devatte 

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