Adobe Fillable Form question
Copy link to clipboard
Copied
I have created an Adobe Fillable form of a job application that is filled out by the applicant.
I have two buttons at the bottom of the form. First button is a "Submit Form" button, which email the completed job application to HR. The second button is a Finish button, which clear the data and return to the first page.
Problem is, if you someone click the "Finish" button before the "Submit Form" button. The data is cleared and the job application never got emails.
Is there a way to either keep someone from clicking on the "Finish" button until the "Submit Form" button has been pressed.
For example, if Finish is pressed before Submit, display a message to do the Submit Form button first.
Or maybe the Finish button is not active till the Submit form button has been pressed.
Does anybody have any idea how to do this? Thanks!!!
Here is what the bottom of the form look like.
Copy link to clipboard
Copied
There is, but consider prompting the user instead, as in the following tutorial: https://acrobatusers.com/tutorials/popup_windows_part1/
Copy link to clipboard
Copied
Show the second button after the first one is clicked.
Acrobate du PDF, InDesigner et Photoshoptographe
Copy link to clipboard
Copied
That is great. Here is my current properties. The problem now is, that I have required fields that needs to be filled and if the applicant forget to fill one out when they click the button.
They will get this dialog box. When the applicant clicks the OK button. The Step 4 buttons shows. We don't want it to show until after they fixed the missing required fields. Any suggestions to get around this?
Thanks again for your help.
Copy link to clipboard
Copied
You must use both actions in one action. You must use Javascript for this.
Copy link to clipboard
Copied
Good morning-
I am not as familiar with javascript anymore. I had that class back in 2007. Any help or place where I could brush up on it? I am sure I would pick it up quick. Thanks.
Copy link to clipboard
Copied
How do you code a "Show a field" in Javascriopt?
Thank you!
Copy link to clipboard
Copied
Change the property display of the field.
Copy link to clipboard
Copied
I am sorry I don't follow.
Here is what the PDF look like when it is open. Now step #4 as shown on the origianl message.
On the property of Step#2, originally I had what you see above. Now I have javascript code to check for empty required fields.If there are any display error message, else send PDFemail, the last thing I want it to do is display(show) the Step#4 button. How do you do that is javascript.
Here is the Step #4 button property. Am I missing something here.
Copy link to clipboard
Copied
You can change the property with Javascript
Copy link to clipboard
Copied
I am sorry, but that my problem I don't know how. If there is a manual somewhere I be more than happy to look it up. Thank you sir.
Copy link to clipboard
Copied
The two steps you need are submitting data and hiding/showing fields.
Here are articles that explain how to do both in a Script.
https://acrobatusers.com/tutorials/submitting-data/
https://www.acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address/
https://acrobatusers.com/tutorials/show_hide_fields/
Also, it's not documented, but the "doc.submitForm" function returns "false" if any required fields are empty. So you don't need separate code to test the required fields.
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Thank you very much sir! I will let you know how things goes tomorrow. Since I have a lot of time on my hands now that they are making everyone around here stay home 😞 Or maybe a good time, I can get caught up on things.
Copy link to clipboard
Copied
The documentation is available in the Acrobat Javascript Reference.
Copy link to clipboard
Copied
Except of course for the undocumented bits 😉
Use the Acrobat JavaScript Reference early and often

