sc_get_wizard_step

This macro works in the form application only when it is configured to work as a step form.
With this macro it is possible to identify the current stage that the end user is in and thus perform any necessary validation.

For the macro to work, the form must be configured with at least two steps or more. It has no parameters.

 


Example: Validation of unfilled fields.

if (sc_get_wizard_step() == 1) {

    if ( empty({contactname}) ) {  

        sc_error_message("Fill the field Contactname");  

    }
}