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

Conditional and Required Fields

New Here ,
Jan 11, 2022 Jan 11, 2022

Copy link to clipboard

Copied

One of my fields (Type field) I have is a drop down list with options RFC, ADM, REB. I would like to create a condition if either ADM or REB are selected from the drop-down list to require the user to select either a quarter checkbox or a month AND enter a year. Is this condition possible with the version of Adobe I am currently using?  The 2nd image below shows the options that I have available. Thank You.

 

Jill226053362lbf_0-1641924262075.png

Jill226053362lbf_1-1641924372106.png

 

 

TOPICS
Windows

Views

63

Likes

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 11, 2022 Jan 11, 2022

Copy link to clipboard

Copied

What do you mean by "require the user"? Do you mean you want to set the fields as Required? Do you know that's only enforced if the file is submitted?

Likes

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 13, 2022 Jan 13, 2022

Copy link to clipboard

Copied

HI,

 

This is possible but would require some JavaScript to be run as you have a choice between which fields they have to fill in, but you would have to control it all yourself, as you can just set fields to "Required" but this means they cannot be left blank.

 

So on your commit ( assuming you have followed the advice already given and are submitting the form) you would have to run a script to check the value of the field, and then check if your conditions are met, if they aren't then display something to the user, and if they are submit the form.

 

Otherwise the best you could hope for it to guide the user through alerts or showing and hiding of fields they need to fill in.

Likes

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 13, 2022 Jan 13, 2022

Copy link to clipboard

Copied

LATEST

First, read the bit on Form Level Validation here:

https://www.pdfscripting.com/public/Form-Data-Validation.cfm

 

Then lets us know exactly how you'd like the form to work when the required fields aren't filled in.

 

 

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

Likes

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