Hide label for input field

前端 未结 7 1034
孤街浪徒
孤街浪徒 2021-02-06 23:04

I am trying to hide the label for a specific field in _form.php without success.

I have tried couple of variation like, but none is working:



        
7条回答
  •  自闭症患者
    2021-02-06 23:50

    field($model, 'password', [
        'inputOptions'=>[
            'class'=>'form-control',
            'placeholder'=>'Password'
        ]
    ])->passwordInput()->label(false); ?>
    

提交回复
热议问题