Date Picker Property-Set ReadOnly to False

Hello,
I added “Cure Date” field to the custom label printing app and set it to read only. Added “Update Cure Date” and “Save” buttons. Created a button click event for the “Update Cure Date” button to set the read-only state to false but the event is not working. What am I doing wrong?

image

Are they bound to a view that is not populated with data? You may need to set a value for this on load.

It is bound to TransView.CureDate field. I purposely set the property to “Read Only” so when the user clicks on the “Update Cure Date” button, he will be able to update the field. After updating it the user will click on the “Save” button to set it to “Read Only” again.

gotcha, I don’t think you need to put that in quotes, have you tried that?

1 Like

You mean “false”? Yes, I have tried it, did not work.

change the prop to readonly all lower case. and no quotes on false :slight_smile:

Perfect! That did it.
Thank you!

1 Like