Steps
Available for fields of type selection
and json
.
<field name="status" widget="steps" />
Step 1
Step 2
Step 3
By default last step of selection is marked as finish
.
Step 1
Step 2
Step 3
Disable last step as finish
<field name="status" widget="steps" widget_pros="{'last_step': false}" />
Step 1
Step 2
Step 3
With error field
In this case, the error field is used to show the error message in the steps widget when the error field is not empty. The content of the error field will be the error message.
<field name="status" widget="steps" widget_pros="{'error_field': 'error'}" />
Step 2
There is an error in this step
Step 3
Dynamic steps
v2.60.0You can use the steps
widget with dynamic steps. In this case, you need to use the steps
widget
with a json
field with the same value as ArrowSteps widget.
API
Property | Description | Type | Default | Version |
---|---|---|---|---|
widget_props | Object with the following properties | object | - | - |
Widget Props
Property | Description | Type | Default | Version |
---|---|---|---|---|
error_field | Field name to show the error message | string | - | - |
last_step | Mark last step as finish. | boolean | true | - |