Triggering a function when a button is clicked in UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2024 01:52 AM - edited ‎12-11-2024 04:17 AM
Hello ServiceNow Dev,
I have created a custom Dialogue Box for Change module when the UI Action Request Approval is triggered. As show in the picture below. I need to call a function invokeRiskAssessment() which is in the same UI Action when the button 'Calculate Risk' clicked.
How to identify that the Calculate Risk button has been clicked in the UI action?
The dialogue box:
The code used to create this popup in UI Action:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2024 02:04 AM
Check this: https://www.servicenow.com/community/developer-forum/call-a-specific-function-of-ui-action-from-ui-p...
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2024 03:29 AM
Hello @Mark Manders , this just shows how to add an option into the form but calling a function of UI Action into UI Page client script is not specified in this.