Skip to content

Steps

Available for fields of type selection and json.

<field name="status" widget="steps" />
1
Step 1
2
Step 2
3
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
3
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 1
Step 2
There is an error in this step
3
Step 3

Dynamic steps

v2.60.0

You 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

PropertyDescriptionTypeDefaultVersion
widget_propsObject with the following propertiesobject--

Widget Props

PropertyDescriptionTypeDefaultVersion
error_fieldField name to show the error messagestring--
last_stepMark last step as finish.booleantrue-