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

Check boxes

New Here ,
Apr 19, 2017 Apr 19, 2017

I am new to acrobat dc.  I have several check boxes all with different names that I want to trigger the cursor to move back to a text field and change it to "required"

for instance if Check box "Corporation"  or "Partnership" or "L.L.C"is checked, the fields NameRow1,TitleRow1,PhoneRow1,EMailRow1 all become "required" and the form cannot be completed without at least row one being filled out.

Please help me.

I am new to acrobat, and to javascript

TOPICS
Acrobat SDK and JavaScript , Windows
848
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

correct answers 1 Correct answer

LEGEND , Apr 19, 2017 Apr 19, 2017

You can't force a user to complete a form before saving/closing/printing. If a text field that's marked as required is blank when a form is submitted ("Submit a form" action or submitForm JavaScript), the submit won't take place.

You can use JavaScript in various ways to check for blank required fields and alert the user before saving/closing/printing, but you can't prevent these actions. If you provide more details about the specific behavior you want, we can probably help.

Translate
LEGEND ,
Apr 19, 2017 Apr 19, 2017

You can't force a user to complete a form before saving/closing/printing. If a text field that's marked as required is blank when a form is submitted ("Submit a form" action or submitForm JavaScript), the submit won't take place.

You can use JavaScript in various ways to check for blank required fields and alert the user before saving/closing/printing, but you can't prevent these actions. If you provide more details about the specific behavior you want, we can probably 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
New Here ,
Apr 19, 2017 Apr 19, 2017

Thank you.

I want the above mentioned check boxes to trigger the text fields to have a red border or other attention getting feature so they are not forgotten.  Is that possible? I know it cannot be guaranteed but would like to at least the reminder if possible.

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 ,
Apr 19, 2017 Apr 19, 2017
LATEST

While it's true you can't prevent the file from being printed/saved, you can force it to print blank, ie with all of the form fields empty.

I've developed a tool that allows you to easily set that up: Custom-made Adobe Scripts: Acrobat -- Validate Required Fields Before Printing or Saving

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