Setting Conditions with required fields

  • Profile Image
    xcitemedia
    Asked on December 16, 2013 at 02:30 PM

    In my form are several checkboxes. Based on what the user selects, I show hidden fields that have to do with what the user checked initially. How can I make fields required, only if another field value (check box in this case) is something? 

     

    Example Scenario:

     

    Checkboxes:

    I am an Owner

    I am a tenant

    -- if 'I am a tenant' is selected, show hidden fields and now require them to be filled in, only because that specific checkbox was selected. 

  • Profile Image
    TitusN
    Answered on December 16, 2013 at 03:13 PM

    Hello

    You could consider pre-filling the all required fields with a default value as illustrated:

    This does not work with all form field types, I have illustrated this with the 'Text box' field type. 

    I've whipped up a sample form that demonstrates this: http://form.jotform.co/form/33495020088857

    This form demostrates the use of required fields which do not prevent a submission regardlessof wheather they are hidden or shown using a conditional rule based on the options of the form user.

    Hope this helps. 

     

     

  • Profile Image
    xcitemedia
    Answered on December 17, 2013 at 05:26 PM

    Thanks. That works! 

  • Profile Image
    TitusN
    Answered on December 17, 2013 at 05:48 PM

    You are welcome. 

    Please let us know how we can assist further.