Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
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...

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&uuml;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
Tanja, can to please tell us which version of Couch you are using?

Thanks.
Hi Kamran!

It is 1.4 version....I downloaded it in April or May this year....

Tanja
Tanja,

I am uploading a modified version of multi_form_handler.html.
Please use it instead of the one you are using now.

Do let me know if this rectifies the problem.

Thanks.

Attachments

Hi KK!

Yes, that rectifies the issue!
Thanks a lot!!!!!

(maybe it would be good to delete or replace the old version of multi-form-handler that is available for download in this post:
http://www.couchcms.com/forum/viewtopic.php?p=9596#p9596

Tanja
I'm glad it worked Tanja :)

Yes, I'll update the original post now that you've confirmed it works with the new version.

Thanks.
6 posts Page 1 of 1
cron