How can I have users be able to fill in certain dates

New Here ,
Aug 18, 2022 Aug 18, 2022

Copy link to clipboard

Copied

I am working on a fillable form, and I want users to enter dates from one period to the next. Specifically from Sunday to Saturday of any week. How can I do that?

 

TOPICS
How to

Views

44

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
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 19, 2022 Aug 19, 2022

Working with Date objects in Acrobat JavaScript is not a trivial task. See these tutorials:

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2

https://acrobatusers.com/tutorials/working-date-and-time-acrobat-javascript-part-3-3

 

If you're interested, I've created a (paid-for) tool that will allow you to set up the calculated dates very easily, without having to write any c

...

Likes

Translate

Translate
Community Expert ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

You can have them fill in just the first day (Sunday), verify it really is a Sunday, and if so, populate the other dates using a script.

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
community guidelines
New Here ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Thanks for the reply. The thing is I'm new to adobe. Can you guide me how to do 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
community guidelines
Community Expert ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

LATEST

Working with Date objects in Acrobat JavaScript is not a trivial task. See these tutorials:

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2

https://acrobatusers.com/tutorials/working-date-and-time-acrobat-javascript-part-3-3

 

If you're interested, I've created a (paid-for) tool that will allow you to set up the calculated dates very easily, without having to write any code. You can find it here: https://www.try67.com/tool/acrobat-apply-automatic-date-calculation

And if you contact me privately I could help you with the first part (validating that the user enters a date that falls on Sunday).

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
community guidelines