Hi all,
I have a simple ActiveForm in which I set
<?= $form->field($model, 'email') ?>
but the generated code set ‘type’ to text. And I wonder if it would be possible to set it to ‘email’.
I have:
<input type="text" id="identityform-email" class="form-control" name="IdentityForm[email]">
I would like:
<input type="email" id="identityform-email" class="form-control" name="IdentityForm[email]">
Same problem for date (would like a type=“date” instead of type =‘text’ in the generated input code)
I try to use
<?= $form->field($model, 'email',['type'=>'email']) ?>
but I end up with an exception (Unknown Property)
Do you know if it is possible to change this ?
Thx in advance