Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe Fillable Form question

Community Beginner ,
Mar 17, 2020 Mar 17, 2020

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.

TOPICS
PDF forms
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 17, 2020 Mar 17, 2020

There is, but consider prompting the user instead, as in the following tutorial: https://acrobatusers.com/tutorials/popup_windows_part1/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2020 Mar 17, 2020

Show the second button after the first one is clicked.

 

8quM2OZspS.pngexpand image


Acrobate du PDF, InDesigner et Photoshoptographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 18, 2020 Mar 18, 2020

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.

ButtonProperties.PNGexpand image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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?

RequiredFieldDialogBox.PNGexpand image

 

 

 

 

 

 

Thanks again for your help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 18, 2020 Mar 18, 2020

You must use both actions in one action. You must use Javascript for this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 18, 2020 Mar 18, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 23, 2020 Mar 23, 2020

How do you code a "Show a field" in Javascriopt?

 

Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

Change the property display of the field.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 23, 2020 Mar 23, 2020

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.

Buttons.PNGexpand image

 

 

 

 

 

 

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.

Step4buttonproperties.PNGexpand image

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

You can change the property with Javascript

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 23, 2020 Mar 23, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

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.

 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 23, 2020 Mar 23, 2020
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

The documentation is available in the Acrobat Javascript Reference.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 23, 2020 Mar 23, 2020

Except of course for the undocumented bits 😉

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines