Hello. I using multipage form. I want to do on first page two button to chose, each one has different way to pages (first to page2 and second to page3) how to do it?
[attachment=0]Untitled.png[/attachment]
[attachment=0]Untitled.png[/attachment]
Hi estorus,
In the Form On Submit event you can use an Event Swtcher, add a little PHP to detect which submit button was uses then redirect the user to the appropriate page.
Bob
In the Form On Submit event you can use an Event Swtcher, add a little PHP to detect which submit button was uses then redirect the user to the appropriate page.
Bob
<div class="form-group gcore-form-row" id="form-row-button19"><div class="gcore-input gcore-display-table" id="fin-button19"><input name="button19" id="button19" type="submit" value="Далее" class="form-control A" style="" data-load-state="disabled" /></div></div>
and<div class="form-group gcore-form-row" id="form-row-button20"><div class="gcore-input gcore-display-table" id="fin-button20"><input name="button20" id="button20" type="submit" value="Далее" class="form-control A" style="" data-load-state="disabled" /></div></div>
In the "Event switcher" and based on your buttons names:
And here is how the event switcher works:
http://www.chronoengine.com/faqs/70-cfv5/5212-event-switcher.html
Regards,
Max
<?php
if(!empty($form->data["button19"])){
return "first";
} else if(!empty($form->data["button20"])){
return "second";
}
?>
And here is how the event switcher works:
http://www.chronoengine.com/faqs/70-cfv5/5212-event-switcher.html
Regards,
Max
This topic is locked and no more replies can be posted.