1👍
✅
You may try this:
{% if wizard.steps.prev %}
<button name="wizard_goto_step" type="submit" value="{{ wizard.steps.first }}" class="btn btn-inverse">First step</button>
<button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}" class="btn btn-inverse">Previous Step</button>
{% endif %}
{% if wizard.steps.current == wizard.steps.last %}
<input type="submit" value="Submit" class="btn btn-primary" />
{% else %}
<input type="submit" value="Next" class="btn btn-primary" />
{% endif %}
That should be the overall idea. Take a look at the wizard doc.
Hope this helps!
Source:stackexchange.com