Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

date field without text field

New Here ,
May 05, 2025 May 05, 2025

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

TOPICS
Al Assistant , How to , JavaScript , PDF forms
1.3K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
May 07, 2025 May 07, 2025
LATEST

Custom format script:

AFDate_Format("mm/dd/yyyy");

Custom keystroke script:

AFDate_Keystroke("mm/dd/yyyy");

You need both.

View solution in original post

Translate
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 ,
May 05, 2025 May 05, 2025

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:

https://www.pdfautomationstation.com/products/item7.cfm

Translate
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 ,
May 06, 2025 May 06, 2025

This is what I am talking about. Also I am working in Designer.

Translate
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 ,
May 06, 2025 May 06, 2025

I don't understand what you are asking.  Do you want a dropdown field or a date field with a popup calendar?

Translate
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 ,
May 06, 2025 May 06, 2025

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?

Translate
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 ,
May 06, 2025 May 06, 2025

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".

Translate
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 ,
May 07, 2025 May 07, 2025

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.

Translate
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 ,
May 07, 2025 May 07, 2025

The built-in format already resets the field for invalid entries.  You will get the popup error either way.

Translate
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 ,
May 07, 2025 May 07, 2025

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

Translate
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 ,
May 07, 2025 May 07, 2025
LATEST

Custom format script:

AFDate_Format("mm/dd/yyyy");

Custom keystroke script:

AFDate_Keystroke("mm/dd/yyyy");

You need both.

Translate
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 ,
May 07, 2025 May 07, 2025

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/

 

ENG-531x364


Acrobate du PDF, InDesigner et Photoshopographe
Translate
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