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

    Formatting drop down menus.

    Asked by akotoulas on September 18, 2011 at 02:15 PM

    I know there is a way to do this, I've seen it somewhere on the site, but I can't find it anywhere now.

    If I recall there was some use of brackets to achieve the following effect:

     

    Group 1
    option 1
    option 2
    option 3
    Group 2
    option 1
    option 2
    option 3

     

    * see the bolded lines. I don't remember if the color can be changed.

    Thank you

  • Profile Image
    JotForm Support

    Answered by NeilVicente on September 18, 2011 at 02:36 PM

    Hi Argyris,

    Please inject this css code on your form:

    optgroup {
    font-weight: bold;
    font-style:normal;
    color: red;
    }
    option {
    color: black;
    }

    To inject custom css:

    1.  Go to Setup & Embed tab
    2.  Click Preferences Form button
    3.  Choose Form Styles tab
    4.  Copy and paste the css code in the Inject Custom CSS textarea


     

    Hope this helps.


    Neil