Skip to main content
Participant
April 16, 2019
Question

Adobe Acrobat Pro Custom Validation Script

I've created a form in Adobe Acrobat Pro DC which will require a user to fill in the following fields: name, business name, phone number, email address, verify email address, & account #. All these fields must be filled out and what's entered must be validated. In the Validate tab for each field I see that I can enter a custom validation script. I have no knowledge of Javascript.

How can I find the correct custom validation scripts to use for each field?

Thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Thom Parker
Community Expert
Community Expert
April 16, 2019

First, you'll have to either learn about scripting in Acrobat or hire a developer.

Next, you have to decide what makes a valid field. Phone numbers and emails follow well established patterns, so you'll find plenty of regular expressions for validating these with a google search, but what makes a name or business name valid? Just being not empty?  Addresses are very difficult because there is only standardization within a specific area, and even that is sketchy.  You can validate things like zip codes and state names, but address numbers and other components of an address vary considerably.

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
April 16, 2019

As for the name, business name, and account # fields, just not being empty, where the user has to enter something in these fields. I'll try some google searches for phone number and email regular expressions as you mentioned.

Translate