Calling Processing script on click of UI page button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 11:25 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2022 11:37 PM
The processing script is fired whenever the form is submitted.
To access the HTML info, you need to refer to fields which are part of form input. Fro example, this would go in the processing script:
var myVar = request.getParameter("bridge");
then you can apply server side API with those vars etc.
But to be honest, processing scripts are not great nor flexible, you probably would be better off switching to using GlideAJAX or REST calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 12:05 AM
Tomasz,
Thanks, but how can we find they have clicked submit or cancel on ui page. If I call this ui page from UI action, as soon as it is clicked it will show like below. And I if they enter any value and click on submit then only I want to run the processing script. If I use the above syntax, I can see only the input value that has been entered not the button name

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 10:55 AM
My guess would be that it only runs when the user clicks Submit, since it only runs when the form gets saved. Maybe you can test that.
Anyway, using the Client Script of the UI Page you can bind the function to a button onclick. And then you can use GlideAjax or REST calls to execute server-side code. I don't think you can respond to button clicked in the processing script - again, this script always runs when the html form gets saved. But TBH I always avoided processing script so not 100% sure.