I have a yii2 ActiveForm field with a HTML5 “form” attribute like this:
$form->field($model, 'event_date', [
'inputOptions' => ['form' => 'starterWizard__form']
])->label('Enter date:');
If I apply a jQueryUI datepicker to this field in yii2 like below, the “form” attribute no longer gets inserted on input field.
$form->field($model, 'event_date', [
'inputOptions' => ['form' => 'starterWizard__form']
])->label('Enter date:')->widget(\yii\jui\DatePicker::class, ['dateFormat' => 'yyyy-MM-dd']);
Any idea why the widget removes “form” attribute from input field and how I can fix the issue?