I want to show a textbox if a checkbox is selected

  • Profile Image
    PoughkeepsieFarmProject
    Asked on March 24, 2015 at 03:28 PM

    Hi there,

    I'd like to have a check box area that combines with text boxes, so the user can add text that matches with a checked box. Is this possible?

    I've included a screencap - in the selected box, I would like users to put in how much they are donating for every donation category they choose. In a perfect world, I would also set up a conditional to hide/show the text box depending on whether the checkbox was checked.

    Please let me know.

    Cheers,
    Jes

  • Profile Image
    raul
    Answered on March 24, 2015 at 05:00 PM

    Please check the following cloned version of your form: http://form.jotformpro.com/form/50826908923968

    Is this what you're trying to accomplish? If so, feel free to clone the form to your account.

    Thank you.

  • Profile Image
    raul
    Answered on March 24, 2015 at 05:02 PM

    I'm sorry, I forgot to share with you this guide: http://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic in which you can see how to show/hide fields based on conditions.

  • Profile Image
    Jesica
    Answered on March 24, 2015 at 05:29 PM

    It's almost right...the problem is that I also need this form to print out in a single page, so I was hoping to put those text fields to the right of the checkboxes, not underneath. So what I was hoping for was to have multiple text boxes fit alongside the single checkbox list.

    like this:

  • Profile Image
    Kiran
    Answered on March 24, 2015 at 07:14 PM

    This requirement may need to have separated checkboxes. Please see the demo form below. Hope that works for you.

    http://form.jotformpro.com/form/50827533535962?

    This is done by using separate checkbox option for each donation type and used field positioning to move the number boxes beside the checkbox. Please feel free to clone this JotForm to your account to see how it works.

    Let us know if you need any further assistance. We will be happy to help.

    Thanks.

     

  • Profile Image
    Jes Clark
    Answered on March 26, 2015 at 02:22 PM

    Thanks so much, this was very helpful!

    I wasn't able to use the cloned form as my finished form because I've developed other parts of the form, so I have a follow-up question.

    I was able to use field positioning to get the boxes on the right lines, but how did you get the text boxes to line up so prettily?  Mine are more scattered.  I'm obviously fairly new to this, so thanks for your help and your patience.

    Cheers,
    Jes

  • Profile Image
    Kiran
    Answered on March 26, 2015 at 04:00 PM

    Your query on aligning text fields is moved to a separate thread and shall be addressed there shortly.

    http://www.jotform.com/answers/541495

    Thank you!