How can we implement opt group in Mendix?

As we know, we use opt group in <select> to show options in sub groups.How can we do that in Mendix? This is how opt group looks like. Example: <select  name="cars" id="cars">   <optgroup label="Swedish Cars">     <option value="volvo">Volvo</option>     <option value="saab">Saab</option>   </optgroup>   <optgroup label="German Cars">     <option value="mercedes">Mercedes</option>     <option value="audi">Audi</option>   </optgroup> </select>
1 answers

If I'm understanding your question correctly, you want to make a drop down list with several values. Can you describe your use case a little further?

You can use the dropdown widget and if you want to use fixed values there, simply make an enumeration with those values and connect it to the dropdown widget. You can find it under “input widgets”