Manually making an Update

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.

Screenshot 2022-04-18 at 10.30.14

Screenshot 2022-04-18 at 10.32.28

On your button's event handler, you set that value to false with:

inputReadOnly.setValue(false)

Screenshot 2022-04-18 at 10.33.12

Would that work for you?

Thankyou @minijohn It worked for me