kartik-v / yii2-builder

Build forms (single or tabular) easily for Yii Framework 2.0.
http://demos.krajee.com/builder
Other
100 stars 50 forks source link

Can't use 'visible' in Activeform #118

Closed rizrob66 closed 5 years ago

rizrob66 commented 7 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