Examples ...

  • Create event - add location - it's hard to find locations with the existing dropdown
  • Search builder - Contact Tag(s) IN - dropdown gets hard to use with many tags

I'd be happy to supply patches for these but I'm not happy I understand the scope of such a change.

Is there a PR that shows how this should be done? A good example of a field being changed to select2?

1 Answer 1


In general, a field can be made into select2 simply by adding the css class "crm-select2" to it.

Here is a PR to add it to the existing location field you mentioned. Please try it out and leave a comment on the PR to say you've tested it and how it works for you - that will speed along the review process and we'll be able to get that merged into the next release of CiviCRM.

Search builder is kinda it's own thing. Changing it to use select2 is certainly possible but would take some doing, you'd need to alter the javascript code somewhat.

  • Easy! I'll look at that tomorrow
    – Ken West
    Commented Jan 2, 2017 at 2:20
  • Actually, I did that today! Nice work!
    – Ken West
    Commented Jan 2, 2017 at 6:17

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.