The CreatorCon Call for Content is officially open! Get started here.

Run Script or Maybe Trigger Event from UI Builder BUTTON Component

vluz
Tera Contributor

Hi All,

 

I've followed some tutorials and I was able to create a new UI builder Page like this

vluz_0-1759421647557.png

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?

6 REPLIES 6

@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.

John Gilmore
Giga Guru

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.