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

    Logic for a radio button that opens text boxes.

    Asked by centralpennsaab on October 11, 2016 at 09:59 PM

    I'm trying to design a few questions for a fairly complex registration form, and need to determine how to build logic that if a number is selected it asks for the appropriate number of text boxes.

    For example, if I ask how many guests from 1 to 5, I would like it to then ask for a name for each person.  Is there an easy way to do this?

  • Profile Image
    JotForm Support

    Answered by Chriistian on October 12, 2016 at 02:47 AM

    You will need to add the maximum number of Name fields that you will need for your requirements. So if you are asking for guests from 1 to 5, you will need to add 5 name fields on your form.

    Then you can use the Show/Hide conditions to show the appropriate amount of Name fields based on the user's selection. You can follow this guide to learn How to Hide or Show Multiple Fields at Once.

    Below is a sample condition for when the user selects 2. You will also have to setup the same conditions for 1, 3, 4 and 5.

    You can check out this demo form to see it in action: http://form.jotform.com/62851059503960. You can also clone it to your account to see how I set it up.

    If you need further assistance, please let us know.