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

Java Script Error Window

Guest
Jun 02, 2016 Jun 02, 2016

I have created a PDF form which is part Customer Pedigree Information (i.e. Name, Phone Number, Address, etc) and part Analysis (i.e. multiple cells which include simple addition and division (with% outputs) via Simplified Field Notation Script). All of the calculations fields are working properly, however, when I attempt to input basic customer data, a Java Script Error Window pops up displaying the following message “The value entered doesn’t match the format field “X”. X represents all of the fields which are formatted to output a %. I then will have to click through several of these error messages before the desired customer input shows up within the field (example: client’s name). 

Any help with this issue would be much appreciated.

TOPICS
Acrobat SDK and JavaScript
221
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 ,
Jun 02, 2016 Jun 02, 2016
LATEST

A percentage field expects a value between 0 and 1.0 - you are very likely trying to e.g. set it to "20" to get a display of "20%". This will result in the error you are seeing. Just divide the value by 100 before you assign it to the field, and you should be OK.

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