How to call a UI Action from an onLoad Client Script

bpolo
Tera Guru

Please could someone help as to how to script a call to a UI Action from a Client Script, so instead of the user pressing the Form Action button, the UI Action will automatically be triggered from a Client Script.

Thanks in advance!

2 REPLIES 2

Rajesh Chopade1
Mega Sage

Hi

If the UI Action has server-side logic that you want to execute, you can call a Script Include using GlideAjax from your onLoad Client Script. The Script Include can contain the logic you would otherwise have in the UI Action.

i hope my answer helps to resolve your issue, if yes please mark my answer helpful & correct.

thank you

rajesh chopade

Bert_c1
Kilo Patron

Why not copy the script logic from the UI action to the client script? Maybe others here can describe how to call a UI action from another client script.