I have a button and a text input. TextInput is currently read-only. What I want is, on clicking of the button, the readonly should become false.
What I am doing-
adding event handler on button, with query- textInput1.readonly=false.
But, this is not working.
Help me to do this, this is an urgent requirement for my project.
Take a read through the Retool's Componet Reference to get a sense of what's programmatically changeable and how.
I would create a temporary state with a default value of
true and use that variable in your inputs
On your button's event handler, you set that value to false with:
Would that work for you?
Thankyou @minijohn It worked for me