Skip to main content
Known Participant
Sep 5, 2025 3:48 PM UTC
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
Sep 5, 2025 4:28 PM UTC

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
Sep 5, 2025 4:28 PM UTC

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
Sep 5, 2025 4:43 PM UTC

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
Sep 5, 2025 5:32 PM UTC

Troubleshooting is easy with the console:

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

Translate