Skip to main content
May 29, 2020
Question

Acrobat JavaScript Date picker for custom dialogue

  • May 29, 2020
  • 2 replies
  • 2125 views

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 has been closed for replies.

2 replies

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

Thom Parker
Community Expert
Community Expert
May 29, 2020

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. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participating Frequently
April 14, 2021

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

Thom Parker
Community Expert
Community Expert
April 15, 2021

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

 

 

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