Run Script or Maybe Trigger Event from UI Builder BUTTON Component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2025 09:15 AM
Hi All,
I've followed some tutorials and I was able to create a new UI builder Page like this
Now, I need this "Notify" Button to trigger an event or maybe even run a client script right away
If possible I want also to grab the value from the field above ...
Does Anybody has any experience with it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2025 08:18 PM
@vluz , can you check what you are receiving in browser console? Configuration looks OK, maybe code is breaking within script. Also check what you are receiving in data source tab for record_lookup_1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2025 07:45 AM
The script in your image is missing required syntax, specifically ";" at the end of lines 12, 13, and 15 and is likely erroring as a result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2025 02:21 PM
I believe that if you are working in UI Builder you will need to use a server script data resource. It should allow you to define the inputs and then when you configure the action handler on the UI button you would map your field to the input as needed.
The server script data resource could perform whatever you need it to on the server side and then in the response provide any additional information back to the action handler. This would then allow you to update the form/UI as needed after the action handler using any of that information.
Without a much more specific use case its hard to provide a more specific answer.
