Highlighted

Keep date calculations set after filling in

New Here ,
Oct 23, 2020

Copy link to clipboard

Copied

I have a form that with a due date field that is read only and a calulation that info is due 2 weeks after filling out this form.  Once submitted I don't want this field to change as it is set to add 14 days to today.  How can I do this?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

You can do it by adding a (hidden) check-box to the file and tick it when the Submit button is clicked, and then adjust the calculation code of the text field to only update it if that check-box is not ticked.

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

31

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Keep date calculations set after filling in

New Here ,
Oct 23, 2020

Copy link to clipboard

Copied

I have a form that with a due date field that is read only and a calulation that info is due 2 weeks after filling out this form.  Once submitted I don't want this field to change as it is set to add 14 days to today.  How can I do this?

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

You can do it by adding a (hidden) check-box to the file and tick it when the Submit button is clicked, and then adjust the calculation code of the text field to only update it if that check-box is not ticked.

TOPICS
Acrobat SDK and JavaScript, PDF forms

Views

32

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 23, 2020 0
Most Valuable Participant ,
Oct 23, 2020

Copy link to clipboard

Copied

You can do it by adding a (hidden) check-box to the file and tick it when the Submit button is clicked, and then adjust the calculation code of the text field to only update it if that check-box is not ticked.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2020 0
New Here ,
Oct 23, 2020

Copy link to clipboard

Copied

Thank you try67.  That should do it.  Don't know why I couldn't think of that!  🙂

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2020 0