Please call initWidgets or initSelects after the select becomes visible. Invisible selects may be used as a dynamic formset template. They are cloned in the process and that confuses select2 and makes the cloned select2's not work correctly.