cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Multi-Part / Multi-Page Form Issues
April 2, 2009
5:12 pm
Allie
Guest

Yes, sorry :)

When I start from http://www.blackberrycar.com/?page_id=282 to choose a rate plan and hit "next" to go to the second form, I'm taken to the second form with the URL of http://www.blackberrycar.com/?page_id=282#usermessage4a . After I submit that form, I'm rerouted back to the first form with the URL of http://www.blackberrycar.com/?page_id=282#usermessage2a .

For the first form ("Rate Plans") my multi-form settings are as follows:

This form belongs to a series of forms
E-mail and tracking supressed
This is the *first* form in a series of forms
No reset or back button
Next form: BlackBerry Pearl New Activation

For the BlackBerry Pearl New Activation form:

This form belongs to a series of forms
Everything is unchecked (e-mail and tracking not supressed, not first form, no reset or back button)
This is the final form

Here's another question too: If I mark the "BlackBerry Pearl New Activation Form" as belonging to a series of forms but also want to use it as a standalone form somewhere else in addition to this multi-part series, is that possible or do I need to duplicate it?

April 2, 2009
7:03 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Allie said:

Yes, sorry :)

When I start from http://www.blackberrycar.com/?page_id=282 to choose a rate plan and hit "next" to go to the second form, I'm taken to the second form with the URL of http://www.blackberrycar.com/?page_id=282#usermessage4a . After I submit that form, I'm rerouted back to the first form with the URL of http://www.blackberrycar.com/?page_id=282#usermessage2a .

For the first form ("Rate Plans") my multi-form settings are as follows:

This form belongs to a series of forms
E-mail and tracking supressed
This is the *first* form in a series of forms
No reset or back button
Next form: BlackBerry Pearl New Activation

For the BlackBerry Pearl New Activation form:

This form belongs to a series of forms
Everything is unchecked (e-mail and tracking not supressed, not first form, no reset or back button)
This is the final form

thanks for the details, it indeed looks well configured. for testing, you can add a "back" button to the second form, this way you can move back and forth and see if the session and thus selected fields are being 'memorized'.

there is also a debug option in cforms.php (top) that'll include some useful stats hidden in your html source which helps troubleshooting.

ps: i like how you changed the CSS and the general form setup, looks really nice.

Here's another question too: If I mark the "BlackBerry Pearl New Activation Form" as belonging to a series of forms but also want to use it as a standalone form somewhere else in addition to this multi-part series, is that possible or do I need to duplicate it?

you need to duplicate it and turn off the MP form feature.

or you can add a new  'pseudo' form, which contains no fields (make sure to hide the complete <form> tag with CSS!) as a "dead end" so to speak.

depending on the context you use the "BlackBerry Pearl New Activation Form" you'll have to use the custom logic in my-functions.php to route to the 'pseudo' form instead of the configured details form. hope this wasn't too cryptic.

April 2, 2009
8:23 pm
Allie
Guest

Hi Oliver:

Thanks for the compliment! I plan on making it nicer once I get this multi-page form issue worked out. I added a back button to the second form and it is not recognizing the current session. Here are the debug logs:

First form:

Original form on page #4
Comment form =
Multi-page form = 1
Switch to form #4
Current form is *first* MP-form
Session found, you're on the first form and session is reset!
Array
(
[cforms] => Array
(
[current] => 0
[first] => 4
[pos] => 1
)

)

User info for form #4
All good, currently on form #4

Second form:

Original form on page #4
Comment form =
Multi-page form = 1
Switch to form #4
Array
(
)

User info for form #4
Session active and now moving on to form #2
All good, currently on form #2

I thought that this may have been a problem because the first form was actually Form 4 in CForms and the second form was form 2, but I duplicated them both so they were in the appropriate order and still nothing happened.
I'm no PHP programmer, but is there supposed to be an array in that second form's debug?
April 2, 2009
9:54 pm
Allie
Guest

I got it to load an array on the second page but it thinks its the first form again (i've since added a third form in the series):

First form

Original form on page #4
Comment form =
Multi-page form = 1
Switch to form #4
Current form is *first* MP-form
Session found, you're on the first form and session is reset!
Array
(
[cforms] => Array
(
[current] => 0
[first] => 4
[pos] => 1
)

)

User info for form #4
All good, currently on form #4

Second form:

Original form on page #4
Comment form =
Multi-page form = 1
Switch to form #2
Current form is *first* MP-form (this is NOT checked in the admin)
Session found, you're on the first form and session is reset!
Array
(
[cforms] => Array
(
[current] => 0
[first] => 4
[pos] => 1
)

)

User info for form #4
Session active and now moving on to form #2
All good, currently on form #2

April 3, 2009
4:15 pm
Allie
Guest

Okay, after hours of frustration I figured out it was my hosting. For those who use PowWeb, the answer is here: http://www.powweb.com/knowledgebase/read_article.b…..?kbid=3439

Also, make sure that the cgi/tmp file has the correct permissions on it!

Oliver, I sincerely appreciate your help and I look forward to submitting my forms to the show and tell section of this forum when they're all complete Cool

April 3, 2009
6:12 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

great! and thanks for the follow-up!

November 20, 2009
1:05 pm
Guest

I also had the problem with my multipart form that after page 2 the user is directed back to page 1 instead of page 3 and on.

I tried to check with my hoster if Allie's solution would do the trick but it appeared that session data was already being properly stored on my server.

Then I tried to build my form on a new install (WP 2.8.6 and cfoms 11.1) at a new hoster and still the problem prevailed.

Then later by coincidence I found out that there is a compatibility issue between the Cforms and More Fields plugins (don't know which of them is the culprit). It appears that when you have created a special post-type with More-Fields and you try to incorporate a multi-part form on such a page, the multi-part directs you from page 2 back to page 1 instead of page 3 as it should.

When I incorporate the exact same form onto a regular page (as opposed to a More-Fields post-type) the multi-part form works like a charm!

At the moment I don't know why. both the regular page and the More-fields post-type use the same template. If anyone has suggestions I would be very interested!

December 14, 2009
6:00 pm
Guest

Hi,

Same problem for me although I've managed to narrow it down to my theme (home grown but very very simple). Could anyone point me towards what I should include to make sure that the session information is held through the forms. Perhaps something in functions.php?

Thanks

Rob

December 17, 2009
6:50 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

cforms uses this to init/keep the session:

add_action('template_redirect', 'start_cforms_session');

usually the 'culprits' have SESSION destroy/reset PHP functions calls in place, if you have those, simply commenting them out should help.

if there aren't any, try to establish the session with

start_cforms_session() in your php header

June 18, 2010
7:45 am
Guest

This thread seems to be much along the lines of the issue I'm having.

I've activated the email in my-functions and get an email from form 1 but when I click submit on form 2, I am directed back to form 1 and do not get any further emails (and also my completed data doesn't get submitted).

When I make form 1 a single form the submit process works fine.

My second form does not have email or name data, but I have assumed that using {cf_form_Email} would get me the user's email address from form 1.

Thanks :)
--Jaime

July 12, 2010
5:52 pm
daigo
Guest

Hi,

I'm also having similar issues. When I put up a form that's only one page it works and I receive an email. When I try and make it into a multi-part form it continuously goes from form 1 to form 2 and back to form 1. I'm positive that I had all the settings correct as well.

May 17, 2011
6:31 am
Jason
Guest

squashroby said:

Hi,

Same problem for me although I've managed to narrow it down to my theme (home grown but very very simple). Could anyone point me towards what I should include to make sure that the session information is held through the forms. Perhaps something in functions.php?

Thanks

Rob

 

I struggled with this very same issue for an entire day.  I have narrowed it down to my Theme.  Not sure why it's happening, but when I change themes, the problem goes away.  If anyone knows what might be causing it, please let me know.   frown

June 27, 2011
8:13 am
Dheeraj
Guest

Oliver said:

cforms uses this to init/keep the session:

add_action('template_redirect', 'start_cforms_session');

usually the 'culprits' have SESSION destroy/reset PHP functions calls in place, if you have those, simply commenting them out should help.

if there aren't any, try to establish the session with

start_cforms_session() in your php header

 

Hi Tried this on my theme, however still can't get the multipage forms to work.

 

(The forms work fine if I use the default twenty10 theme.)

July 19, 2011
1:12 pm
Aric Hoek
Guest

I hate to say it, but I am having the same problem.  Second form reverts back to the first form.  Is there any information that I can send you that might help me to resolve this issue?

 

The form is located at http://solarisstudios.com/2011/07/19/the-solaris-wedding-detail-form-2/

 

Thank you.

December 19, 2012
8:40 pm
Ikkes
Guest

Hi,

We are having the same issues…..we have two multi-page forms (both on other static pages in WP) and the following happens:

- You fill in the first page of form1 and go to page2 of form1
- Then you go to the form2 (static page) and the form1 is shown

Strange behaviour isn't it?? How can we solve this? When i comment out the following line:

add_action('template_redirect', 'start_cforms_session');

The correct form is shown on the correct page, however the data is not saved…..

Kind regards,

Ikkes

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3740

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5340

Posts: 18707

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)