Skip to main content

Multi-step form "Next" button

This filter allows you to provide custom markup for the multi-step form "Next" button.

\add_filter('es_forms_block_step_component_next', [$this, 'getBlockStepComponentNext']);

/**
* Changing the default custom next button for the multi-step form.
*
* @param array<string, mixed> $data Block attributes.
*
* @return string
*/
public function getBlockStepComponentNext(array $data): string
{
return '<button type="submit" class="custom-button">Next</button>';
}
Note

The custom button will not show in Form settings pages.