I derive the field

<?= $form->field($model, 'end[]', ['template'=>'{input}'])->textInput(['value'=>'00:00', 'class'=> 'form-control', 'id'=>'ident'])->label(false)->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99:99',]); ?> 

As you can see, I assign him an id, but not from it. It remains the way the system makes it. What have I done wrong?

    1 answer 1

    This is all MaskedInput breaks. So it should work.

     <?= $form ->field($model, 'end[]', [ 'template'=>'{input}', ]) ->textInput([ 'value'=>'00:00', ]) ->label(false) ->widget(\yii\widgets\MaskedInput::className(), [ 'mask' => '99:99', 'options'=>[ 'class' => 'form-control', 'id'=>'ident', ], ]); ?>