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

    Is it possible to create option groups within a dropdown?

    Asked by sjpd on February 01, 2017 at 05:48 PM

    Is there a way to create an option group subheading and indented sub-selections in a dropdown list?

     

    In HTML it would look like this:

                    <optgroup label="Crime Prevention">

                           <option value="Central">Crime Prevention: Central Division-</option>

                           <option value="Foothill">Crime Prevention: Foothill Division-</option>

                           <option value="Southern">Crime Prevention: Southern Division-</option>

                           <option value="Western">Crime Prevention: Western Division-</option>                       

                        </optgroup>

     -Dave

  • Profile Image
    JotForm Support

    Answered by EltonCris on February 01, 2017 at 08:20 PM

    Yes, that's possible. 

    To create a group, enclose the text with double square brackets.

    Example:

    [[header]]

    option 1

    option 2

    Result: