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.

  • Profile Image

    Creating an "OR" Required field

    Asked by rubix41 on July 29, 2011 at 12:09 PM

    Hi! New to jotform and really impressed about this platform. It's very useful for someone like me who needs to get things done fast but neat for other people to use! Anyway, enough gushing!

    What I want to do is create a satisfaction form that allows me to identify who sent it.  The plan is going to be sending them an email to link to my Jotform satisfaction page, let them fill it and then a thank you page that's in-house.

    What I have done is I have asked people to enter their ID number into the form to validate who they are and so I can work out who their response is but HR have said that they might not know their ID number and would it be possible if they entered their phone number or their name instead.

    So I was wondering if there was a solution really. I am thinking maybe a required box that would allow an OR for two pieces of data like:

    1: Please enter either your ID number OR your phone number.*

    Field 1 (ID)*  <---> Field 2 (Phone number)*

    Where as long as field 1 or 2 has the right information inside it then that's fine.

    Failing that, is there anyway Jotform can recognise where the sender accessed the form - if Jotform can tell me which mailbox it came from, I won't need to enter the question. All I would need to know would be that it came from john.smith@whatever.com so it must be john smith since his email address is john.smith@whatever.com

    What do you guys think?

  • Profile Image

    Answered by brx250 on July 29, 2011 at 11:53 PM

    Hi rubix41,

    Thank you for using JotForm.

    Unfortunately, JotForm currently doesn't have this feature. But I do see how this could be useful. I've already added this to our feature request list and hopefully our developers can incorporate this in the future. The best thing for you to do, for now, is to use JotForm's Conditional Logic with radio button and textbox. Here how it works.

     Navigate to your form, create a radio button and two textboxes for your client's ID and Phone Number . Shrink them both to place them beside each other.

    After finishing the looks of your form, let's get it working. Under the "Setup & Embed" tab, select the "Conditions". Choose "Show/Hide field".


    Configure your conditions as you see fit.


    You can see this form in action through this link.


    Hope this helps.

    If you have any other questions, please feel free to contact us.

    Albert JotForm Support

  • Profile Image

    Answered by rubix41 on August 02, 2011 at 12:41 PM

    Thanks for the input - it works like a charm :)

  • Profile Image

    Answered by brx250 on August 04, 2011 at 12:49 AM


    Hi there, 

    We're glad you've sorted things out already. If you do have any other questions in the future, please feel free to contact us again, we will be more than willing to help you with anything.

    Albert JotForm Support