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

    How do I turn an item in a regular checkbox field into a subheading?

    Asked by tillmaj on December 09, 2013 at 08:38 AM

    I am VERY interested in your product. Currently I have this form:

    https://formscentral.acrobat.com/app.html#d=JlyAcDrEbHEpfTEFwNLGSw

    I want to have a checklist with a restricted # of selections (i.e. at least one but no more than 2) and subheadings. I've been trying to use your code and modify but have not had any luck. Here's my test in your product:

    http://form.jotform.us/form/33422317966154

    I want to make "Associate of Science Majors" a subheading - is that possible?



    This is a re-post of a comment on How to Have Sub-Category or Sub-Labels on an Order Form

    JotForm checkbox subheading
  • Profile Image
    JotForm Support

    Answered by abajan on December 09, 2013 at 08:52 AM

    Hi Tillmaj,

    To make Associate of Science Majors a subheading, please add the following rules to the form's injected CSS:

    #input_9_0 {
    display: none;
    }

    label[for="input_9_0"] {
    margin: 0;
    font-weight: bold;
    text-decoration: underline;
    }

    Regarding your other question, please see How to set up minimum or maximum number of selection on Checkbox Field. Configuring minimum and maximum selections in a checkbox field is unrelated to the topic of this thread. As such, if you need to discuss the feature more, please open a new thread.

    If you need help with anything else that's JotForm related, please let us know.


    Thanks

  • Profile Image
    JotForm Support

    Answered by abajan on December 09, 2013 at 09:12 AM

    Incidentally, Chrome's Inspect Element tool would greatly assist you with such a task. Please have a look at the following video:

    (Best viewed at YouTube in HD)


    Cheers

  • Profile Image

    Answered by tillmaj on December 09, 2013 at 10:32 PM

    Nice - thank you.  This right here is a piece of functionality I could never get my other form sites to do.  Will be checking out your product VERY thoroughly.

  • Profile Image

    Answered by tillmaj on December 10, 2013 at 12:40 AM

    One more question - I am able to figure out how to carry the formatting into multiple subheadings (bold, underline) but I can't figure out how to keep the checkbox from displaying on additional subheadings, i.e. I want input_09_38 to be a subheading as well.

     

    Thanks in advance!

  • Profile Image
    JotForm Support

    Answered by abajan on December 10, 2013 at 03:34 AM

    Hi again,

    The reason it's not working is because the ID in the selector in the relevant rule is incorrect. In Chrome, if the check box in question is inspected, you'll see that its ID is actually input_9_38 and not input_09_38. So, changing the rule from

    input[id*="_9_0"],input[id*="_09_38"] {
    display: none;
    }

    to

    input[id*="_9_0"],input[id*="_9_38"] {
    display: none;
    }

    should fix the problem.

  • Profile Image

    Answered by tillmaj on December 10, 2013 at 04:37 AM

    Beautiful, thank you, now I have multiple subheadings!