I have a textInput, with a value from API. What I want is when button is clicked select dropdown should open, with the value default written the one textInput contains(since textInput is now hidden), But I am not bale to display that value in select component.
@ishi8
Why don't you just populate the select component with the value from the query?
You would have to create an Event Handler for that button using onClick and write something like this for the value: {{yourselectdropdown.setValue(textInput.value}}
I do not believe that you can set the value of a select field from a button with a single value. I posted the selection of a value in a drop down to be set in a text fieldβ¦is that not what you need to do?
Hi @ishi8, Is the value you're setting on your select component included in the array of id values from the list_job_role data source? If not, then you'd need to 'Allow custom values' on your select component in order to set that value with select.setValue().