Group Step Fields

Code sample

echo FormWizard::widget([
    'steps' => [
        [
            'model' => new Shoots(),
            'title' => 'My Shoots',
            'description' => 'Add your shoots',
            'formInfoText' => 'Fill all fields',
            'stepHeadings' => [
                [
                    'text' => 'Heading with default icon',
                    'before' => 'image'
                ],
                [
                    'text' => 'Heading with no icon',
                    'before' => 'created_at',
                    'icon' => false
                ],
                [
                    'text' => 'Heading with Custom Icon',
                    'before' => 'active',
                    'icon' => '<i class="formwizard-checkmark-ico"></i>'
                ]
            ],
            'fieldConfig' => [
                'image' => [
                    'options' => [
                        'type' => 'file'
                    ]
                ]
            ]
        ],
        [
            'model' => new ShootTag(),
            'title' => 'Shoot Tags',
            'description' => 'Add your shoot tags',
            'formInfoText' => 'Fill all fields'
        ],
    ]
]);
Fill all fields

Heading with default icon

Heading with Custom Icon

Heading with no icon

Fill all fields