Hi everyone,
I have a very strange problem with the select_advanced fields. If I don't set the ID, or leave it empty, select2 works correctly. If I set the ID, it's as if it doesn't get initialized. Obviously without ID it doesn't work, because it doesn't save the fields.
How can I solve this problem?
Here an example:
[
'id' => '',
'ajax' => true,
'name' => 'Obbligatorio per i settori',
'type' => 'select_advanced',
'multiple' => true,
'select_all_none' => true,
'columns' => 12,
'placeholder' => '-- Seleziona Settore --',
'options' => get_occupation(),
],
Example without ID
Example with ID