Logic for a radio button that opens text boxes.

  • Profile Image
    centralpennsaab
    Asked 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
    Chriistian
    Answered 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.
    Regards.