Skip to content

Disable ActiveForm Validation

Coackroach edited this page Jan 19, 2020 · 2 revisions

You can disable the ActiveForm validation by passing the enableClientValidation as false for the formOptions, you can use all supported options for the ActiveForm

use buttflattery\formwizard\FormWizard;
echo FormWizard::widget([
    'formOptions'=>[
        'id'=>'my_form',
        'enableClientValidation'=>false,
    ],
    'steps' => [
        [
            'model' => $shootsModel,
            'title' => 'My Shoots',
            'description' => 'Add your shoots',
            'formInfoText' => 'Fill all fields'
        ],
        [
            'model' => $shootTagModel,
            'title' => 'Shoot Tags',
            'description' => 'Add your shoot tags',
            'formInfoText' => 'Fill all fields'
        ],
    ]
]);
Clone this wiki locally