What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How to make a dropdown menu and an input field mandatory based on whether or not the field is used...Asked by objectivedebug on June 01, 2016 at 01:08 PM
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?
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.
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.
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.
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.