Turn "Field Entry" selections on and off in a script
I have an Expense layout with vendor Name and Address fields filled in from a related vendor table based on the VendorID in the Expense record.
I have a button in case they need to add a new vendor. I have the vendor name and address fields as read only normally but want to make the editable if the new vendor button is clicked.
How do I do this?