First, I want to thank Oliver for the excellent plugin. It's very flexible and solid. Second, I wanted to post some info about how I solved my problem with getting variables to work in the notification messages on my multi-part form.
I have a 3-form series I built. I wanted to pass field values from the 1st form in the notification email of the 3rd. I will use the field name "First Name" as an example:
From reading the help, I originally tried this:
{First Name}
I ended up with "{First Name}" in my email.
I spent quite a while trawling through the messages on here, and tried every permutation I could think of. Nothing worked. So I came across this message:
http://www.deliciousdays.com/c…..mp;ret=all
I will quote the relevant part from Oliver:
for multi-part forms, this would be the correct way to reference fields on previous forms:
{cf_form_Email} >> field "Email" on form #1
{cf_form2_URL} >> field "URL" on form #2
etc.
If you want to see the complete user data array (as it is used internally), uncomment the cforms "user action" function in my-functions.php and have it send you via email the data array (example is in the file).
So I opened my-functions.php and uncommented lines 37-139. Additionally, I uncommented line 44: @mail('your@email.com', 'cforms my_action test', print_r($cformsdata,1), 'From: your@email.com');
Filling in my email where it says 'your@email.com'.
I tried my form again, and received several messages with the data array listed in them. And I was able to see that the correct way to list the variables was like this:
{cf_form[form number counting from 1]_Field Name}
So for my field, which has the field name "First Name", on the second form in the system (first form is the default form), the variable looked like this:
{cf_form2_First Name}.
When I needed to pull a field named "Total Donation" from form 3, the variable looked like so:
{cf_form4_Total Donation}
I'm sharing this in the hopes its helpful to someone, since I just spent 5 hours trying to figure it out. Oliver, I would maybe put a note in your documentation saying specifically what the difference between single and multi-form variable naming is.
Thanks,
Gustavo