Formatting drop down menus.

  • Profile Image
    akotoulas
    Asked 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
    NeilVicente
    Answered 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