UI Builder - Changing component properties via script & Set input focus

Eric54
Tera Expert

Two questions,


In UI Builder is it possible to change component properties via script or is data binding the only way to do this?  I can see gform in the api auto complete but I can’t seem to find documentation on it.

I’d also would like to set the focus to a specific input field when certain events occur.  Is there a way to do this?

 

Thanks,

Eric.

2 REPLIES 2

JohnDF
Mega Sage

@Eric54 any update on this?

I found that databinding to client state parameters is the only way to set component properties.

 

Still not sure where g_form is used.   Perhaps it's used to get and set variables from Catalog Item when using the Catalog Item component.

 

As for setting the focus to an input field, I created a custom component based on the @Servicenow/input component and added the functionality to set the focus myself.  I think this is an oversight from next experience component team it should really be added to all the available input types.


Eric.