Closed vc7deo closed 7 years ago
@vc7deo I do not have those issues at all. Have you make sure 'tagNames' is set in rules as 'safe' ? is it set? You should not set the 'value' but ensure the 'tagNames' is actually filled with imploded values when you display the form.
On another note, i see that you have not put the 'delimiter'. Do you mind updating your code with it?
<?= $form->field($model, 'zip')->widget(
SelectizeTextInput::className(),
[
'options' => ['class' => 'form-control'],
'clientOptions' =>
[
'plugins' => ['remove_button'],
'create' => true,
'delimiter' => ',',
'persist' => false,
'createOnBlur' => true
]
]
)->hint('Use commas to delimit zip codes') ?>
and manually put * 'value' => 'munnar,kerala',* for checking if its selected in the selectizetextinput