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

Requiring fields based on an answer

New Here ,
Jan 26, 2024 Jan 26, 2024

Copy link to clipboard

Copied

Hi there:
I've searched through the community and found some answers, but not quite what I need. I have a pdf form that I need to require some fields based on an answer.

The first is NAME1. If they filled out NAME1 (it's not a required field as there may not be a name there), then I need EMAIL1 and PHONE1 to be required.

The second is a radio button named ALLERGY with the value of Yes. If they check Yes, then I need them to be required to answer EXPLANATION and PLAN, as well as check a box named ACKNOWLEDGE. My javascript knowledge is pretty poor. Can someone please help?

Thank you,

Christie

TOPICS
JavaScript , PDF forms

Views

126

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 26, 2024 Jan 26, 2024

Copy link to clipboard

Copied

Before we help you achieve this, do you understand that the "Required" property is only enforced when the file is submitted? Not when the user enters data, saves the file, prints it, or anything else.

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 26, 2024 Jan 26, 2024

Copy link to clipboard

Copied

LATEST

Yes, they don't want the form being submitted without these fields required. 

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