Add button not showing in actionUpdate
devenairevo opened this issue · 1 comments
devenairevo commented
The issue is with add button which is not showing on the update action. Only showing in a createAction. Probably issue with js.
my update.php
<?= $form->field($projectTag, 'name')->widget(MultipleInput::class, [
'data' => ArrayHelper::map($model->projectTags, 'id', 'name'),
'max' => 50,
'min' => 1, // should be at least 2 rows
'allowEmptyList' => false,
'enableGuessTitle' => false,
'addButtonPosition' => MultipleInput::POS_ROW,
'addButtonOptions' => [
'class' => 'btn btn-success',
'label' => '﹢' // also you can use html code
],
'removeButtonOptions' => [
'class' => 'btn btn-danger',
'label' => '﹣',
]
])->label(Yii::t('app', 'Tags', ['class' => 'form-label']))
?>