PDF Automation Station

PDF Automation Station

Validating Required PDF Fields

How to validate required fields before sending the PDF form with an email button

David Dagley, CFP®'s avatar
David Dagley, CFP®
Nov 09, 2024
∙ Paid
person writing bucket list on book
Photo by Glenn Carstens-Peters on Unsplash

In my last article I described how to create a button that sends a completed PDF fillable form by email. I outlined two methods and suggested the second document method is the preferred method for sending the form as an email attachment:

  1. submitForm( )

  2. mailDoc( )


Get the course above, and a suite of automation tools for FREE with a Professional subscription.


What If You Want To Validate Fields Before Sending?

The submitForm( ) method will not send, and will display a warning message, if any "required" fields have a null value. The required property of the field is located in the General tab of the field properties:

Required property of a PDF form field

The warning message does not specify which fields are missing data (keep reading for a more customized field validation strategy):

Keep reading with a 7-day free trial

Subscribe to PDF Automation Station to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 David Dagley · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture