How to make a dropdown menu and an input field mandatory based on whether or not the field is used...

  • trigonometrycode
    Asked on June 1, 2016 at 1:08 PM

    Hello,

    I have a form that has a dropdown menu with business names in it for my employee's to use. I also have a field where the employees can enter a customers name if they are not working at a business. I don't want to make a restriction on one or the other because I don't know if the employee will be at a  business or if they will be at a residence. (IE: I have a "Customer Name" and a "Business" field, that as of right now neither are required. My employees can submit a form and forget to fill out whether or not it's a "Business" or "Customer Name" and submit the form without it being flagged as mandatory

    The dropdown menu is setup so that a list of businesses they frequently visit can be selected. However, when my business receives a service call, the employee won't know whether or not they will be at a business or a persons home. Neither the "Customer Name" nor the "Business Name" fields are required. I don't want to make one mandatory when it might not be the employees input desired.) Is there a way so that the employee would have to choose between the "Business Name" or the "Customer Name" fields without putting a required value on either one of the two options?

     

    Thank you,

    Robert

  • BJoanna
    Replied on June 1, 2016 at 2:16 PM

    You can resolve this by adding one more field to your form, radio button field or checkbox field (if you want to allow your users to enter data in both fields "Customer Name" and "Business Name") and that field will have two options "Customer Name" and "Business Name". Thank you you users will be able to choose which option they want to fill. For example if only "Customer Name" option is selected "Business Name" field will not bi shown on your form. You can achieve this with conditional logic Hide Show field. More about conditional logic you can find inside of this guide: http://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic 

    Also you would need to make all three fields required.

    Here is my demo form: https://form.jotform.com/61525893311960 

    Other way is to make both fields required and then to use conditional logic option Enable/require field and set your conditions like this.

    How to make a dropdown menu and an input field mandatory based on whether or not the field is used Screenshot 20

    Here is my other demo form: https://form.jotform.com/61525980135961 

    Feel free to test them and clone them

    Hope this will help. Let us know if you need further assistance. 

  • trigonometrycode
    Replied on June 2, 2016 at 8:10 AM

    Dear Joanna,

    Thank you so much, that's exactly what I needed. That is a very good solution for what I needed. I don't mean to be rude or inappropriate but on your cloned forms you used as examples based on my form, if someone fills that form out, will it effect my submissions and views? If so, can you remove those two examples, if not, then I don't mind them being there.

     

    Thanks again,

    Robert

  • victor
    Replied on June 2, 2016 at 9:42 AM

    Glad to know the solution provided by my colleague help resolved your question. 

    The sample provided is independent to your forms and will not effect your submissions or views. It does not contain any information of yours. 

    If you have any other question, please let us know.