Forums

v5 Dropowns with option groups

Jojo 01 Jul, 2015
I want to create a drop down with following options in select:
<select name="Industry" id="Industry" size="1" style="width:240px; font-size:12px;">
                                  <option value="" selected="selected">Select</option>
                                  <optgroup label="---Business---">
                                    <option value="BROADCAST/CABLE/TV/RADIO">Broadcast/Cable/Tv/Radio</option>
                                    <option value="CONSTRUCTION">Construction</option>
                                    <option value="ENGINEERING_AND_MANAGEMENT_SERVICES">Engineering & Management Services</option>
                                    <option value="FINANCIAL_SERVICES">Financial Services</option>
                                    <option value="INSURANCE">Insurance</option>
                                    <option value="LEGAL">Legal</option>
                                   Publishing</option>
                                    <option value="PROFESSIONAL_SERVICES_(BUSINESS)">Professional Services business</option>
                                    <option value="PROFESSIONAL_SERVICES_(TECHNICAL_WEB_IT)">Technical/Web/IT</option>
                                    <option value="REAL_ESTATE">Real Estate</option>
                                    <option value="RETAIL_WHOLESALE_TRADE">Retail/Wholesale/Trade</option>
                                    <option value="SERVICES">Services</option>
                                    <option value="TECHNOLOGY/HIGH_TECH">Technology/High Tech</option>
                                    <option value="TELECOMMUNICATIONS">Telecommunications</option>
                                    <option value="TRANSPORTATION_AND_PUBLIC" utilities="UTILITIES">Transportation</option>
                                    <option value="UTILITIES">Utilities</option>
                                  </optgroup>
                                  
                                  
                                </select>
i want to display the option group labels to be disabled to select. How to do it in Wizard designer? Should it be dynamic?
GreyHead 01 Jul, 2015
Hi poojah12,

This is a different question than the one in the thread you posted in so I've split it out.

There is no support for option groups built in but you can add them by putting HTML like this in a Custom Code element from the Advanced elements group.

Bob
This topic is locked and no more replies can be posted.