Skip to main content
Participant
January 26, 2024
Question

Requiring fields based on an answer

  • January 26, 2024
  • 1 reply
  • 237 views

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

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 26, 2024

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.

TCJchrisAuthor
Participant
January 26, 2024

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