Skip to content

Commit

Permalink
add maxlength for input
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Apr 19, 2024
1 parent 2014bae commit 0fb59f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//'labelOptions' => ['class' => 'control-label col-lg-2'],
],
]);?>
<?=$form->field($answer, 'answer')->textInput(['placeholder'=>$model->maskedCode,'autofocus' => false, 'autocomplete'=>'off', 'style'=>"width: 100%;margin: 0; padding: 0; border: 0;",'id'=>'question'.$model->id])->label(false) ?>
<?=$form->field($answer, 'answer')->textInput(['placeholder'=>$model->maskedCode,'autofocus' => false, 'autocomplete'=>'off', 'style'=>"width: 100%;margin: 0; padding: 0; border: 0;",'id'=>'question'.$model->id,'maxlength'=>128])->label(false) ?>
<?php ActiveForm::end();?>
<?php endif;?>
</div>
Expand Down

0 comments on commit 0fb59f7

Please sign in to comment.