What you can do is that you can add a boolean attribute “Editable”, and when the user clicks on the button you change the value of this boolean to true. Also, you will need to set the editability of the attributes that you want to change their editability to be dependent on the boolean attribute. This way, they’re non-editable by default, and when you click on the button they become editable.
Thanks a lot. You helped me!!