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

A date of birth of 31 automatically changes to 01 on a website.

New Here ,
Sep 20, 2024 Sep 20, 2024

I work for a state agency and we have a PDF that has many lines where a DOB is required. The day of birth fields are customized to 'dd' so that would include any date from 1-31. This is fine and works on the PDF version, but once the form is transferred to a website, whenever someone tries to put in a day of birth as '31' it is atuomatically changed to '01'. How can I resolve this? Thank you. 

TOPICS
PDF forms
165
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 ,
Sep 20, 2024 Sep 20, 2024

It seems that when you format a custom date of dd the web browser is validating the day for the current month.  Since September only has 30 days it is rejecting it.  You can format the field to a 2-digit number with no decimal places instead, and in the validation tab, set the range between 1 and 31.  Not all web browsers and PDF viewers are consistent but this worked in the web browser for which I tested it.

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 ,
Sep 20, 2024 Sep 20, 2024

Formatting scripts, or scripts of any kind on a PDF, do not operate properly when the PDF is viewed in a web browser. 

 

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

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 ,
Sep 20, 2024 Sep 20, 2024
LATEST

What PDF viewer is used to display the file when viewed in the browser? The fault is most likely with that viewer, as most PDF plugins that come with the browsers are sub-par when it comes to things like scripts and form fields.

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