PDF Editing Issues

Validate Required PDF Form Fields Before Printing or Saving in Acrobat

Elise WilliamsElise Williams Nov 19, 2026 868 views

Question details

The user wants required fields in a fillable PDF checked before the form is printed or saved.

Validate Required PDF Form Fields Before Printing or Saving in Acrobat
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.
Before you start

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.

Solution 1Recommended

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.

1
Check field properties

In Acrobat, open All tools > Prepare a form. Select each field, open its Properties, and confirm that Required is enabled where needed.

2
Add a print button

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.

3
Add the validation script

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}); }

4
Test the button

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.

Add a button that checks required fields before printing
Saving requires a separate workflow: A custom validation button can warn users before they save manually, but it cannot reliably block the viewer's standard Save command. Automated saving with Acrobat JavaScript may also require additional security permissions.
Review PDF forms in WPS Office

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. 1. Open the PDF: In WPS Office, select Open and choose the fillable PDF form.
  2. 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. 3. Print or save: After checking the fields, use File > Print to print the form or File > Save As to save a copy.
Review and fill supported PDF form fields before printingPrint or save a completed PDF from the same workspaceCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXUse a familiar interface for common document tasks
microsoft office alternative - wps office

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.