Skip to main content
Known Participant
September 5, 2025
Answered

I need help with Java Script button

I have a button at the bottom of the form when clicked I want it to inform the user that not all required fields have been entered. It was working successfully on a different pdf and I just copied and pasted the java script and changed the required fields. But the error message is not popping up. 

 

Thank you for your time! I appreciate the help. 

PDF Automation Station
Community Expert
September 5, 2025

Your field named "Client Job" has 2 spaces between the words "Client" and "Job", which does not match "Client Job" in the script.  Either add another space between the words in the script, or remove one of the spaces in the field name.

3 replies

PDF Automation Station
Community Expert
Community Expert
September 5, 2025

Your field named "Client Job" has 2 spaces between the words "Client" and "Job", which does not match "Client Job" in the script.  Either add another space between the words in the script, or remove one of the spaces in the field name.

Translate
Known Participant
September 5, 2025

Good eye!! Thank you so much. That would have taken me a while to figure that one out. I appreciate your help.

Translate
PDF Automation Station
Community Expert
Community Expert
September 5, 2025

Troubleshooting is easy with the console:

https://pdfautomationstation.substack.com/p/the-javascript-console

Translate