Make select2 fields work when adding a new record