Forums

Back button multipage form not work

sylwekb 01 Aug, 2016
Back button multipage button not work.

Is this incorrect? In Code Admin panel after save cuts the link button. How to fix it?


<a href="index.php?option=com_chronoforms&chronoform={chronoform}&cf_sid={cf_sid}"><input name="button32" id="button32" type="button" value="<< Back - Powrót" class="form-control A" style="color: #c3c3c3;" data-load-state="" /></a>
GreyHead 01 Aug, 2016
Hi sylwekb,

This looks OK - where do you have this code?

What exactly do you mean by 'In Code Admin panel after save cuts the link button' ?

Bob
GreyHead 02 Aug, 2016
Hi sylwekb,

Two problems here:

+ the post you found was for ChronoForms v4 and you are using v5 so some of the classes, etc, may be out of date.

+ the Code page is set to Wizard Designer which means that anything you add there will be lost when the form is saved. If you change it to Custom Code then you can add/edit code here but after that you cannot use the Designer tab.

Better to add a Custom Code element in the Designer tab and add your code there.

Bob
sylwekb 02 Aug, 2016
1. How should look like a valid link to V5? What is the difference between a link V4 and V5?
2. Where insert a link to a button in the Designer?
GreyHead 02 Aug, 2016
Hi sylwekb,

1. The class names and the HTML structure have changed. What you use depends on what you want the button to look like. The URL would be something like
<a href="index.php?option=com_chronoforms5&chronoform=your_form_name&event=some_event" >


2. add a Custom Code element in the Designer tab. You'll find that in the Advanced group

Bob
sylwekb 02 Aug, 2016
Button works. There is one problem does not remember the history of filling the form fields. How to solve this problem?

Bottom custom code

<a href="index.php?option=com_chronoforms5&chronoform=test-poziomujacy"><input name="button32" id="button32" type="button" value="<< Back - Powrót" class="form-control A" style="color: #c3c3c3;" data-load-state="" /></a>
GreyHead 07 Aug, 2016
Hi sylwekb,

You probably need to add a MultiPage action on the first page. That will re-load any saved data. There is a potential problem if users are likely to submit the form more than once in he same session, if that is a problem you can solve it by using an Event Switcher action to detect if this is being loaded from a Back Button or is a new submission.

Bob
sylwekb 07 Aug, 2016
Thank you Bob the button now works OK. :-)
sylwekb 31 Aug, 2016
Problem solved
The correct code

<div class="form-group gcore-form-row" id="form-row-multi-32"><div class="gcore-subinput-container" id="fitem-button32"><div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-button32"><a href="index.php?option=com_chronoforms5&chronoform=your-form-name"><input name="button32" id="button32" type="button" value="<< Back" class="form-control A" style="color: #c3c3c3;" data-load-state="" /></a></div></div>



<div class="form-group gcore-form-row" id="form-row-multi-32"><div class="gcore-subinput-container" id="fitem-button32"><div class="gcore-input pull-left gcore-sub-input gcore-display-table" id="fin-button32"><a href="index.php?option=com_chronoforms5&chronoform=your-form-name&event=page2"><input name="button32" id="button32" type="button" value="<< Back" class="form-control A" style="color: #c3c3c3;" data-load-state="" /></a></div></div>


....
This topic is locked and no more replies can be posted.