how to change/override a date that is "calculated-read only" by using a button | Community
Skip to main content
Level 5
Jan 20, 2023 3:01 AM UTC
Solved

how to change/override a date that is "calculated-read only" by using a button

Good day,

I have a date field on my form that is calculated-read only.  The current date is entered each time the form is opened.  I would like to have a button that will allow a specific user to be able to change the date when needed.  Is there a way to do this?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vijay_Katoch
Vijay_KatochAccepted solution
New Participant
Jan 27, 2023 3:44 AM UTC

Remove the calculated property from the field. Make it readOnly to set the value and on the button click make the access to open.

6 replies

Vijay_Katoch
New Participant
Jan 20, 2023 4:30 AM UTC

You need to change the "yourFieldName.access" property to desired value in button click event.

 

yourFieldName.access="open";

Translate
Level 5
Jan 25, 2023 9:57 AM UTC

Good day,

I did not reply that the answer was correct.  Actually, it's not working.  After entering the information in the click event, I get the following pop-up - "The value you entered for todaydate cannot override its calculated value".  When I hit "ok", the date reverts back to the today's date.

Translate
Vijay_Katoch
Vijay_KatochAccepted solution
New Participant
Jan 27, 2023 3:44 AM UTC

Remove the calculated property from the field. Make it readOnly to set the value and on the button click make the access to open.

Translate