event handlers to ensure data entered in the text boxes is captured and persisted

joshmorris
Tera Guru

I raised a case with now support about text not being retained when saving when being entered into input boxes in the UI builder on a custom built page. They said I was missing event handlers so does anyone know what these are and which ones I need?

1 ACCEPTED SOLUTION

Diogo Ramos
Giga Sage

Hello, from my understanding UI builder does not save the data on a input component, you will have to save that data somewhere in the system (for example the server side, or in a preference or something else). 

For that you need to add an event handler on that component , click add event mapping then select input value set

DiogoRamos_0-1738444145923.png

Now, you need to store the value somewhere, so for this example, I am just updating the short description of my record, when I add something to the input component, for this I need a new data resource that will update my record :

DiogoRamos_1-1738445270919.png

 

This data resource can only be used from a trigger, so we go back to the input event, and now add the execution of this resource , I just decided to use the script version :

DiogoRamos_2-1738445409346.png

 

Now, after you save the variant, you should have an input component that after adding text, saves the content on the record for this example.

Cheers
Diogo



View solution in original post

1 REPLY 1

Diogo Ramos
Giga Sage

Hello, from my understanding UI builder does not save the data on a input component, you will have to save that data somewhere in the system (for example the server side, or in a preference or something else). 

For that you need to add an event handler on that component , click add event mapping then select input value set

DiogoRamos_0-1738444145923.png

Now, you need to store the value somewhere, so for this example, I am just updating the short description of my record, when I add something to the input component, for this I need a new data resource that will update my record :

DiogoRamos_1-1738445270919.png

 

This data resource can only be used from a trigger, so we go back to the input event, and now add the execution of this resource , I just decided to use the script version :

DiogoRamos_2-1738445409346.png

 

Now, after you save the variant, you should have an input component that after adding text, saves the content on the record for this example.

Cheers
Diogo