Alter error message of a date field

New Here ,
Feb 24, 2021 Feb 24, 2021

Copy link to clipboard

Copied

Hi, 

 

Is there a way where the error message of a date field can be changed? When typing text with invalid date format, it gives the default error message but it needs to be customized in our use case. Any help would be appreciated, thanks.

TOPICS
JavaScript, PDF forms

Views

58

Likes

Translate

Translate

Report

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 ,
Feb 24, 2021 Feb 24, 2021

Copy link to clipboard

Copied

or would it be possible if it can prevent user from typing in the text field of the date picker and just let them select date from the date picker?  Thanks 

Likes

Translate

Translate

Report

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
Most Valuable Participant ,
Feb 24, 2021 Feb 24, 2021

Copy link to clipboard

Copied

- No. You'll need to create your own custom Validation, Format and Keystroke scripts to do that, but then the calendar picker won't appear.

- I don't think that's possible, either.

Likes

Translate

Translate

Report

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 ,
Feb 24, 2021 Feb 24, 2021

Copy link to clipboard

Copied

LATEST

For point 1: that's what I have got so far too using the way mentioned in: https://acrobatusers.com/forum/forms-acrobat/date-validation-1/  but the datepicker disappears after... 

For point 2:  Sad..

 

Thanks for the reply, appreciate it

Likes

Translate

Translate

Report

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