How to call a UI Action from an onLoad Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2024 09:58 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2024 10:08 AM - edited ‎08-09-2024 10:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2024 10:56 AM
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.