Yii2: autocomplete HTML option

Created on 17 Nov 2014  路  2Comments  路  Source: yiisoft/yii2

Hi.

In Yii 1.1.15, I can use autocomplete option like this:

array('id'=>'idTextField',
'width'=>100,
'tabindex'=>2,
'autocomplete'=>'off',
)); ?>

How can I use it in Yii2 fields?

Best.

Most helpful comment

It does not work on Chrome.

All 2 comments

okay I found solution in yii\bootstrap\ActiveField file.

field($model, 'username', [
'inputOptions' => [
'autocomplete' => 'off',
]]
); ?>

It does not work on Chrome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gpoehl picture gpoehl  路  47Comments

alexandernst picture alexandernst  路  163Comments

samdark picture samdark  路  52Comments

dhiman252 picture dhiman252  路  44Comments

deecode picture deecode  路  50Comments