I'm trying to create an option group for a custom data field. It needs to be a multi-select dropdown. How can I build in CiviCRM


  <optgroup label="Accommodations">
    <option value="Bed & Breakfasts">Bed &amp; Breakfasts</option>
    <option value="Camping">Camping</option>
  <optgroup label="Arts & Crafts">
    <option value="Artisans">Artisans</option>
    <option value="Artists">Artists</option>
  • agree with Aidan - can you clarify why just adding these via Custom Field isn't an option. mostly folk would 'add custom field' and within that choose eg 'select' and then create their options
    – petednz - fuzion
    Commented Feb 12, 2019 at 19:39

1 Answer 1


Are you trying to add these in an extension? If so, see adding custom fields with civix which suggests creating them via the GUI then exporting them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.