ishi8
1
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.
Hey @ishi8,
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 readOnly
field.


On your button's event handler, you set that value to false with:
inputReadOnly.setValue(false)

Would that work for you?
ishi8
3
Thankyou @minijohn It worked for me
1 Like