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

Phone field format warning: JavaScript window -

New Here ,
Jul 06, 2017 Jul 06, 2017

Using Adobe Acrobat Pro to create some fillable forms:

For the date field, the "Warning: JavaScript Window -" display the detailed/correct message, and it says "Invalid date/time: please ensure that the date/time exists. Field [field name] should match format mm/dd/yyyy" (the date format I selected).

However for phone and zipcode, I also used Format tab, and selected format category using Text Field Properties, such as Phone Number or 5 digit zip code, but the JavaScript Window doesn't give the hint for what type of format if user didn't type in correct format in a textfield. For example, the phone number warning window only says: "The Value entered doesn't match the format of the field [ PHONE ]."

My tooltips say "Enter Phone number (xxx) xxx-xxxx". I would like to add the tooltip info to the end of warning message, or add the format example there", since some folks who use the forms may not see the tooltips.

Is there a way to make that happen? Thanks in advance.

Margaret

TOPICS
PDF forms
2.0K
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 ,
Jul 06, 2017 Jul 06, 2017

You'll need to use a custom Format script to do it.

On Thu, Jul 6, 2017 at 6:01 PM, MargaretHuang <forums_noreply@adobe.com>

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 ,
Jul 06, 2017 Jul 06, 2017

You'll need to use a custom Format script to do it.

On Thu, Jul 6, 2017 at 6:01 PM, MargaretHuang <forums_noreply@adobe.com>

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 ,
Jul 06, 2017 Jul 06, 2017

How could the date fields do those nice things 🙂 -  display the format automatically? Is that because zip code and phone number (also SSN) are listed under Special category in the format. It will be so much simpler if it has the same functionality as date/time/number since some forms I have are containing 28 pages, I need to set a couple of hundreds places for custom script.

Do you know if Adobe is considering to add this feature, or it's just my dream :-).

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 ,
Jul 06, 2017 Jul 06, 2017
LATEST

This can all be done using custom-made scripts. I don't think Adobe is going to implement what you've described any time soon.

If you're interested in hiring someone to do it for you, feel free to contact me privately at try6767 at gmail.com.

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
LEGEND ,
Jul 06, 2017 Jul 06, 2017

You may also  want to add a custom validation script since that would check the total entry and not just the setting the display format. Once could also include a custom keystroke script to only allow the numeric digits and the "-", "."  or "  " as valid input keys/

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