Copy link to clipboard
Copied
Hello
I have a client that wants a date drop down field but does not the ability to add text manually.
Wants only the date present through the drop down.
Is this possible?
Thanks
Copy link to clipboard
Copied
Custom format script:
AFDate_Format("mm/dd/yyyy");
Custom keystroke script:
AFDate_Keystroke("mm/dd/yyyy");
You need both.
Copy link to clipboard
Copied
Long before Adobe added date pickers to date-formatted fields, I developed a (paid for) date picker tool. You can set the text field to read only and use the date picker tool to select the date:
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I don't understand what you are asking. Do you want a dropdown field or a date field with a popup calendar?
Copy link to clipboard
Copied
I need the drop down to populate with a calendar without being able to create there own text.
When they click to add text it errors out. No Text. Drop down Only.
Is it possible?
Copy link to clipboard
Copied
The only way I know how to do that is with the date picker tool I created and setting the date field to "read only".
Copy link to clipboard
Copied
OK
How about a script the will reset the field to blank if invalid?
I really do not want to use a third party software.
Copy link to clipboard
Copied
The built-in format already resets the field for invalid entries. You will get the popup error either way.
Copy link to clipboard
Copied
I am working with a document built in LiveCycle Design and the field does not reset automaticaly.
Do you know what the script is in Acrobat Java.
I am not very experienced with JavaScript.
I appreciate you responses.
Thank you
Copy link to clipboard
Copied
Custom format script:
AFDate_Format("mm/dd/yyyy");
Custom keystroke script:
AFDate_Keystroke("mm/dd/yyyy");
You need both.
Copy link to clipboard
Copied
MagicDate picker is a (free) full JavaScript date picker (not using form fields), so it should work in Designer too.
It comes with a button field feeding a landing text field, and therefore do what you need.
Search for "Landing field" on this page: https://www.abracadabrapdf.net/utilitaires/utilities-in-english/magicdate-picker/
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more