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

Required Fields in PDF Fillable Forms

New Here ,
Jan 27, 2021 Jan 27, 2021

Copy link to clipboard

Copied

I'm creating a pdf fillable form, and I need to ask yes/no questions.  I want to make each question required, but the person would have to check either yes or no.  How do I do that?  

 

TOPICS
PDF forms

Views

225

Translate

Translate

Report

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 ,
Jan 27, 2021 Jan 27, 2021

Copy link to clipboard

Copied

Define what you mean by "required". What should happen if they don't answer it?

Votes

Translate

Translate

Report

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

Hi. Thanks for replying.  I have a set of yes or no questions.  The questions are required, so for each, they would have to check either yes or no.  I know I can make fields required, but I need to make either yes, or no, required.  I also have some questions, where if they check one box, then they'd have to answer another, so a field would only be required if they said yes to a previous answer.  I hope that makes sense.  Thanks again.

Votes

Translate

Translate

Report

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

That doesn't really answer my question... OK, so you made the fields required, but the user still didn't fill them in.

What should happen? Is the file being submitted back to you? Printed? Just saved?

Votes

Translate

Translate

Report

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 ,
Jan 28, 2021 Jan 28, 2021

Copy link to clipboard

Copied

LATEST

To handle the bare "required" bit, give the yes/no pair of checkbox fields the same name, but make the export value for each "Yes" or "No" as appropiate.  The default state for both needs to be "Off".  The default value is how Acrobat determines whether or not the field has been filled.

 

Now, Try67 has an important point. What exactly do you want to happen if the user doesn't fill the required fields? The default action is to block form submission. Did you need something else to happen.

 

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

Votes

Translate

Translate

Report

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