Skip to main content
May 29, 2020 7:11 PM UTC
Question

Acrobat JavaScript Date picker for custom dialogue

Is there a JavaScript for a date picker for a custom dialogue which is used to create an acrobat dynamic stamp? The custom dialogue has several text fields and radio buttons on it, and the user has to type in a date (not the current date). If it is possible, I would like the user to select a date from a date picker, but I don't know if this can be done.

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

May 29, 2020 10:28 PM UTC
Thank you Thom. I suspected this was the case. I couldn't find anything in my searches.

Translate
Thom Parker
Community Expert
Community Expert
May 29, 2020 8:30 PM UTC

No, nothing like this already exists.

You can always validate the date and force the user to enter a valid one before leaving the dialog. 

Or use dropdowns for setting the day/month/year. 

Or create a custom date picking popup dilaog. 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participating Frequently
Apr 14, 2021 5:06 PM UTC

Thanks Thom.
What did you meant about "creating a custom date picking popup dialog" and how to acheive it?

Translate
Thom Parker
Community Expert
Community Expert
Apr 15, 2021 3:32 PM UTC

You'll find a "pop-up" calendar here that you can copy and paste onto your PDF.  Read the instructions carefully. 

https://www.pdfscripting.com/public/Free-Sample-PDF-Files-with-scripts.cfm

 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often