Validate Required PDF Form Fields Before Printing or Saving in Acrobat
Question details
The user wants required fields in a fillable PDF checked before the form is printed or saved.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A fillable PDF has required fields that should be completed before a user prints or saves it.
- Observed behavior
- Required fields can remain blank when the PDF is printed or saved because Acrobat normally validates them during form submission.
Open the PDF in Acrobat and use Prepare a form to confirm which fields are marked Required. To add a validation button, you need permission to edit the form and a PDF viewer that supports Acrobat JavaScript.
Add a button that checks required fields before printing
Use a custom form button to check common required fields before opening the print dialog.
The button controls its own print action; it does not prevent someone from using the viewer's standard Print or Save commands. The example covers required text fields, checkboxes, and radio buttons. Adapt and test it for other field types and viewers.
In Acrobat, open All tools > Prepare a form. Select each field, open its Properties, and confirm that Required is enabled where needed.
In Prepare a form, add a Button field and label it Print after validation. Open the button's Properties, select Actions, choose Mouse Up and Run a JavaScript, and click Add.
Paste this script into the JavaScript editor and save it: var missing = []; for (var i = 0; i < this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); if (!f || !f.required) continue; if (f.type === 'text' && !/\S/.test(f.valueAsString)) missing.push(f.name); if ((f.type === 'checkbox' || f.type === 'radiobutton') && f.valueAsString === 'Off') missing.push(f.name); } if (missing.length) { app.alert('Complete these required fields:\n' + missing.join('\n')); } else { this.print({bUI: true}); }
Exit form editing and click Print after validation with a required field empty. Complete the field and click the button again to confirm that the print dialog opens.

Review required fields before using Print or Save
Use a manual check when you cannot edit the form or add scripts.
Check and complete a PDF form in WPS Office
Open a fillable PDF in WPS Office, review its required fields, and complete them before printing or saving. This is a manual check and does not enforce validation.
- 1. Open the PDF: In WPS Office, select Open and choose the fillable PDF form.
- 2. Check required fields: Review the form's instructions and required-field markers, then click each applicable field and enter or select a value.
- 3. Print or save: After checking the fields, use File > Print to print the form or File > Save As to save a copy.

Frequently Asked Questions
Why does Acrobat print a PDF with required fields left blank?
The Required property is normally checked when a form is submitted, not when the standard Print or Save command is used.
Where can I mark a PDF field as required?
In Acrobat, open All tools > Prepare a form, select the field, and enable Required in its Properties.
Will a custom print button stop users from printing through the File menu?
No. The button can check fields before its own print action, but users may still use the viewer's standard Print command.
Can WPS Office automatically enforce required fields before saving?
The WPS workflow described here relies on manually checking the form before using File > Save As; it does not enforce required-field validation.




