How to Disable a PDF Form Submit Button After Submission
Question details
The user wants to know how to prevent a PDF form from being submitted multiple times by disabling the submit button after the initial submission.

- Product
- PDF Form
- Device & OS
- not provided
- Scenario
- Distributing a fillable PDF form that should only be submitted once by the recipient.
- Observed behavior
- Recipients are able to click the submit button multiple times, prompting the need to secure the form to prevent multiple submissions of the received copy.
Always save a backup copy of your original, fully interactive PDF form. Once you apply settings to disable the submit button and save the document, you will need the original file for future distributions.
Use JavaScript to Disable or Hide the Submit Button on Click
Configure the submit button's properties to run a short JavaScript snippet that automatically disables or hides the button immediately after the user clicks it.
By attaching a script to the button's click action, you can ensure that the button disappears or becomes inactive the moment the form data is dispatched. This prevents the recipient from clicking it a second time.
Open your interactive PDF form in your PDF editor and navigate to the Form editing tools.
Right-click on the Submit button you want to modify and select 'Properties' from the context menu.
Go to the 'Actions' tab. In the 'Select Action' drop-down menu, choose 'Run a JavaScript' and click 'Add'.
To hide the button after clicking, enter the script: event.target.display = display.hidden; To make it read-only instead, use: event.target.readonly = true; Click OK to apply.
Save this document as a new file to send to your recipients, ensuring your original template remains unmodified.

Create and Manage Interactive PDF Forms with WPS Office
WPS Office provides a comprehensive suite of PDF tools, allowing you to easily create interactive forms, add buttons, and manage form properties to control user submissions seamlessly.
- 1. Open Your PDF Form: Launch WPS Office and open your PDF document.
- 2. Access Form Tools: Navigate to the Form tab on the top ribbon to access all interactive field tools.
- 3. Edit Button Properties: Select your submit button, access its Properties panel, and adjust visibility or action triggers as needed.
- 4. Save and Distribute: Save your customized PDF form as a new file and send it to your recipients securely.

Frequently Asked Questions
Can I re-enable a submit button after it has been disabled by a user?
Once the button is disabled and the recipient saves or sends the PDF, the button cannot be easily re-enabled on that specific copy. You must use your original, unchanged master copy of the form to generate a new active version for future use.
Why do I need to keep a backup of the original PDF form?
If you apply scripts or specific form settings that permanently disable form fields or buttons upon use, you will lose the ability to reuse that exact file for new submissions. A backup ensures you always have a working master template.
Will JavaScript form actions work in all PDF viewers?
Most standard desktop PDF viewers support JavaScript for form actions like hiding buttons. However, some basic mobile PDF viewers or web browser-based readers may not execute these scripts properly, so the button might remain visible on those platforms.




