How can I make a field on my required based on user's answer?

  • aviara
    Asked on April 28, 2019 at 6:55 PM

    The method to Make a Field Required Based on User's Answer is described here

    https://www.jotform.com/help/367-How-to-Make-a-Field-Required-Based-on-User-s-Answer 

    is this method still correct? 

    IF I fail to make the fields required in this manner, will there be an error in the form and the form will not be able to be submitted? For example as mentioned in this support article...

    see Adrian's post, 3rd from bottom

    "I have checked your form and I was able to reproduce the issue with not being able to submit the form. The problem is that you have REQUIRED fields that are shown/hidden depending on user's answer. "

    https://www.jotform.com/answers/1409844-Message-There-are-errors-on-the-form-Please-fix-them-before-continuing-When-a-hidden-required-field-is-shown-and-then-hidden-again-


    If there is a more recent method or an easier way to make a field required based on the user's answer, please let me know,

    thanks 

  • Kiran Support Team Lead
    Replied on April 29, 2019 at 12:53 AM

    The method provided in the guide should be working fine. The thread that you were referring to was about a year old and it seems that there was a temporary issue then with the conditions. However, it was resolved by our backend team immediately. 

    Are you experiencing any issue with the conditions setup on your form? If so, please provide us with the form ID/URL and the condition that is not working so that we can take a look and assist you further.

    Thanks!

  • aviara
    Replied on April 29, 2019 at 8:43 AM

    In this guide it says you should create a condition to make the rule required. But the simpler method is just to make the question required in the question properties.

    for example, my form has this conditional logic:

    Q1. Do you like cats or dogs?

    if they answer 'cats' hide Q2

    if they answer 'dogs' hide Q3

    I have set Q2 and Q3 to be "required" in the properties for that question.

    Will this cause any errors when you try to submit the form?

  • Kiran Support Team Lead
    Replied on April 29, 2019 at 9:47 AM

    No. Please note that the fields hidden on the form shall not be considered as required fields. The required fields on the form shall only display an error if they are displayed on the form and not filled.

    Thanks!