Closed rizrob66 closed 5 years ago
Hi, I would like to manage the display of a field. In the documentation I found 'visible' boolean but I can not make it work, the field always sees. Below I attach my code is very simple. Can you please tell me where I'm wrong?
$form = ActiveForm::begin(['type' => ActiveForm::TYPE_HORIZONTAL]); echo Form::widget([ 'model' => $model, 'form' => $form, 'columns' => 1, 'attributes' => [ 'test'=>[ 'type'=> Form::INPUT_TEXT, 'visible' => FALSE], ] ]); thanks Roberto
Hi, I would like to manage the display of a field. In the documentation I found 'visible' boolean but I can not make it work, the field always sees. Below I attach my code is very simple. Can you please tell me where I'm wrong?
$form = ActiveForm::begin(['type' => ActiveForm::TYPE_HORIZONTAL]); echo Form::widget([ 'model' => $model, 'form' => $form, 'columns' => 1, 'attributes' => [ 'test'=>[ 'type'=> Form::INPUT_TEXT, 'visible' => FALSE], ] ]); thanks Roberto