Use wizard to insert multiple record

hi there,

i made a form with wizard steps works fine. when a user is on the last step, and stores the record. i want the user to redirect to a new record. this also works but the wizard is not showing teh first step but the last one…

any suggestions how to go to the first step in a wizard after an insert?

Hi,

In the onLoad event, put this:

$_SESSION['sc_session'][$this->Ini->sc_page]['form_clientes']['form_wizard']['actual_step'] = 0;
$_SESSION['sc_session'][$this->Ini->sc_page]['form_clientes_mob']['form_wizard']['actual_step'] = 0;

Put the name of your form in place of form_clientes and they will work on desktop and mobile.

Hope this helps.

1 Like

thanks @Kleyber_Derick that did the trick. never figured this one out by myself. great function, should be mandatory

2 Likes