Skip to main content
Participant
March 20, 2023
Question

Looking for javascript help for PDF form

  • March 20, 2023
  • 2 replies
  • 1759 views

Hello,

Looking for javascript help for PDF form.

I have few required fields than needs to be filled in. Signature box at the bottom of the form which I would like them to sign only when the required fields are filled in. Possible a message pops up saying so & so fields are empty. 

Wondering what javascript will i need. Would you be able to help please. 

 

thank you.

GBR

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
March 20, 2023

The only way to do that is to hide the signature field until all the required fields have been filled in, and only then show it. You can do that using a custom Calculation script under one of the text fields in your file (or a special, hidden, field used just for that).

Participant
March 20, 2023

Thank you. Im not an java expert. Will it be possible to show what the script would look like?

thanks

try67
Community Expert
Community Expert
March 20, 2023

If you search the forum for "validateRequiredFields" you should find some examples of a generic code to validate required fields. The function can also be used to make the signature field visible/hidden.

 

If you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on "Send a Message".

JR Boulay
Community Expert
Community Expert
March 20, 2023

If you're using AcrobatSign you don't have to care, the document cannot be signed if required fields are not filled.

Acrobate du PDF, InDesigner et Photoshopographe
Participant
March 20, 2023

thank you for your response.