multi page, event switcher, and email probs

marklandry 20 Nov, 2013
Hi, I have a multi page form that's working well, an event switcher that's working well, with an email within one of the events.

The form is 5 checkboxes on the first page, and two checkboxes on the second.
When I get the email, info for the 2nd page checkboxes shows up, but not for the ones on the first page, all I get is the curly bracket code.

here is a screenshot of my events.
[attachment=0]Capture.JPG[/attachment]

Here is the debug:
Data Array: 
Array
(
    [option] => com_chronoforms
    [chronoform] => donate
    [event] => submit
    [cf_sid] => c6cdc3648f7b8b063512b42a3987e685
    [Itemid] => 
    [e_check] => 1
    [credit_card] => 
    [chrono_verification] => YztjG
    [input_submit_14] => Submit
    [b482eefb1b9835fac134e2674368871a] => 1
    [annual_fund] => 
    [write_in] => 
    [input_submit_9] => Next >
    [input_checkbox_16] => 1
    [apl] => yes
)
Validation Errors: 
Array
(
)
Debug Data
Core Captcha
Passed the core captcha check!
email
42
Result
An email has been SENT successfully from (test)info@seejesus.net to lloydlandry@gmail.com
Body
Label Text	 {input_checkbox_16}
See Jesus Annual Fund	 {annual_fund}
A Praying Life Ministry (Bob Allums)	 {apl}
Africa Coordinator (Jonathan Winfree)	 {jonathan_winfree}
Person of Jesus International (Richard Eckhardt)	 {richard_eckhardt}
Women's Ministries (Julie Courtney)	 {julie_courtney}
Other	 {write_in}
{}
Donate Via E-Check (Electronic Funds Transfer)	 1
Donate Via Credit Card	
Enter the code	 YztjG


Submitted by 71.218.173.54
Attachments
array ( )
redirect_user
redirect_user_target_url: https://www.eservicepayments.com/cgi-bin/Vanco_ver3.vps?appver3=Dc8dzPGn4-LCajFevTkh9NwnNWyj2yNAGqUy1VEoEkRtrwpoDNuGLQGygL9asG_TZuqu6_RDmkUYUJdyc9LZI7o7zqy-JU_UuLu19bUbJx1WeL5gt_MKLPuEZp92OV_c2EvVVAEjqawDomKT1pbouXN4lkfmHH2figO8YL-10zU=&ver=3
Redirect URL (click to continue):
xxxxxxxxx


Thanx a ton for your help!!
Mark
GreyHead 21 Nov, 2013
Hi Mark,

Please try moving the MultiPage action to be the first action in the event, not the last. I suspect that it it never being executed as the user is redirected first.

Which input names belong to the checkboxes?

Bob
marklandry 26 Nov, 2013
Hi Bob
The checkboxes are:
{annual_fund}
{apl}
{jonathan_winfree}
{richard_eckhardt}
{julie_courtney}

I moved the multi-page action up which changed things but getting some weird results.
First, I'm seeing some of the checkboxes checked when the form opens, if I uncheck these and check others, the email shows the ones checked before I changed them. Seems like a caching issue but I can't resolve it.

Re the checkboxes that aren't checked when form is submitted, I still get the curly bracket code on some of them. Below s my debug code after the change you suggested:
After page 1:
Data Array: 
Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => donate
    [event] => pageTwo
    [cf_sid] => 268d3c390714f99a87d2e5a4a8a83618
    [Itemid] => 
    [annual_fund] => 
    [julie_courtney] => yes
    [write_in] => 
    [input_submit_9] => Next >
    [af985b7fcce09bfd7c70f0643930e8cf] => 1
    [e_check] => 1
    [credit_card] => 
    [chrono_verification] => iCwa4
    [input_submit_14] => Submit
    [jonathan_winfree] => yes
    [apl] => yes
)
Validation Errors: 
Array
(
)

(julie_courtney was the only one checked when I submitted page one, but jonathan_winfree and apl were checked when form loaded...)
After page two:

Debug Data
email
42
Result
An email has been SENT successfully from (test)xxxxx.net to xxxxxxxx
Body
See Jesus Annual Fund	
A Praying Life Ministry (Bob Allums)	 yes
Africa Coordinator (Jonathan Winfree)	 yes
Person of Jesus International (Richard Eckhardt)	 {richard_eckhardt}
Women's Ministries (Julie Courtney)	 yes
Other	
Donate Via E-Check (Electronic Funds Transfer)	 1
Donate Via Credit Card	


Submitted by xxxxxxx
Attachments
array ( )
redirect_user
redirect_user_target_url: xxxxxxxxxxxx
Redirect URL (click to continue):
xxxxxxxxxxxx
Core Captcha
Passed the core captcha check!


Thanx again for looking into this

Mark
GreyHead 30 Nov, 2013
Hi Mark,

You may see odd results if you are testing the same form several times in the same user session. Typically this is because the saved results aren't being cleared between submissions to ChronoForms is re-loading them. To fix this put a Session to Data action near the end of the last On Submit event and set Clear After to Yes.

Bob
marklandry 20 Dec, 2013
Added the suggested action above -
Still the same problem

See Jesus Annual Fund
A Praying Life Ministry (Bob Allums) {apl}
Africa Coordinator (Jonathan Winfree) yes
Person of Jesus International (Richard Eckhardt) {richard_eckhardt}
Women's Ministries (Julie Courtney) yes
Other
Donate Via E-Check (Electronic Funds Transfer) 1
Donate Via Credit Card

GreyHead 21 Dec, 2013
Hi Mark,

A couple of possible problems here.

The first is that Max suggests that the Multi-page action should be the first action in the event - it should at least be after any validation of the fresh data and before you do any saving or processing that requires access to the old data.

The second is that you probably need to check out and manage the array values from a checkbox group with a bit of care. Because the Handle Arrays action coverts them from an array to a string they may need to be converted back to an array to republish correctly. Using a Debugger action after the Multi-Page action will tell you what values are being re-loaded.

If you need more refined control than the Multi-Page action gives you then you can use separate Session to Data and Data to Session actions (the Multi-Page action is essentially a wrapper for a pair of these).

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

VPS & Email Hosting 20% discount
hostinger