-
Notifications
You must be signed in to change notification settings - Fork 13
Multiple models in a single step
Coackroach edited this page Jan 19, 2020
·
2 revisions
To use a multiple model across steps you can pass the array of models to the model
option.
use buttflattery\formwizard\FormWizard;
echo FormWizard::widget([
'formOptions' => [
'id' => 'my_form_multi_model_single_step',
'options'=>[
'class'=>'form-inline'
],
],
'steps' => [
[
'model' => [$shootsModel,$shootTagModel],
'title' => 'My Shoots',
'description' => 'Add your shoots',
'formInfoText' => 'Fill all fields',
],
[
'model' => $userModel,
'title' => 'Shoot Tags',
'description' => 'Add your shoot tags',
'formInfoText' => 'Fill all fields',
],
],
]);
- Get Running with Minimal Options
- Disable ActiveForm Validation
- Enable Ajax Validation
- Add Custom Buttons
- Widget Constants
- Customizing Form Fields
- Configuring File Uploads
- Custom Field Order
- Single Model Across Steps
- Multiple models in a single step
-
Tabular Steps-(New)
- Working With Widgets
- Limiting Rows
- Dependent Inputs Since v1.7.2
- Skip-able Step-(Since v1.5.0)
- Enable Preview Step-(New)
- Group Fields-(New)
- Enable Form Persistence-(New)
- Enable Edit Mode - (Since v1.6.4)