Hello again Couchies!
before, I had a problem that the form would not reset to empty, and now I have a problem that the form resets all the time....
It is 2 step registration form...and when I click on "Back" button in the second step (which is there so registrant has opportunity to check), it goes back to the completely empty from...all is deleted....
Hope anyone can tell me where the solution would be...
I post the shortened code that I use...
Thanks in advance
Tanja
before, I had a problem that the form would not reset to empty, and now I have a problem that the form resets all the time....
It is 2 step registration form...and when I click on "Back" button in the second step (which is there so registrant has opportunity to check), it goes back to the completely empty from...all is deleted....
Hope anyone can tell me where the solution would be...
I post the shortened code that I use...
- Code: Select all
<!-- ======== FORM ============ -->
<cms:form method='post' anchor='0' class="formular">
<!-- Set the total number of steps (sub-forms) in this form -->
<cms:set total_pages = '2' />
<cms:embed 'multi_form_handler.html' />
<cms:if k_current_step gt total_pages >
<p> text after form is submitted </p>
<em>Print this for reference</em>
<cms:embed 'feedback_de.html' /> (this is also text after form is submitted, with all the values that are entered in the form)
<cms:send_mail from=k_email_from to=k_email_to subject='One Registration'>
<cms:embed 'feedprivate_de.html' />(this is text after form is submitted, with all the values for the site owner)
</cms:send_mail>
<cms:send_mail from=k_email_from to=frm_email subject='Your registration'>
<cms:embed 'mail_de.html' />(this is text with all the values for the person that registers)
</cms:send_mail>
<cms:else/>
<cms:if k_current_step='1' >
<-- form fields for name etc etc etc -->
</cms:if>
<cms:if k_current_step='2' >
Check your registration
<cms:embed 'anmeldungstep2.html' /> (this is text with values entered so far in the form for checking)
</cms:if>
<cms:if k_current_step gt '1'><input type="submit" name="back" value="Zurück" class="buttonS"></cms:if>
<input type="submit" name="next" value="<cms:if k_current_step=total_pages>Senden<cms:else />Weiter</cms:if>" class="buttonS">
<!-- <cms:input name="submit" type="submit" value="absenden" class="buttonS" /> -->
</cms:if>
</cms:form>
Thanks in advance
Tanja