About email notifications
Posted: 25 March 2008 07:44 AM   [ Ignore ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  145
Joined  2008-03-04

Hi,

I am new here so I just getting used to Freeform and need some direction.

I have created a form that requires name and email and I have added a series of checkboxes, similar to one seen in another thread here. However, I need the values of those checkboxes to be included in the email notice that is sent out. Something like this:

The following has been submitted by:

Name: Henry James
Email: hj@new.net

Has checked the following boxes:

Cameras
Computers
Bikes
Cars

I would appreciate some guidance on how to get this to show up.

Thanks in advance.

Forrest

Profile
 
 
Posted: 25 March 2008 07:58 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Forrest,

Just make sure that your form formatting for the checkboxes looks something like this:

<p><input name="field_name_1[]" type="checkbox" value="Cameras" /> Cameras</p>
<
p><input name="field_name_1[]" type="checkbox"  value="Computers" /> Computers</p>
<
p><input name="field_name_1[]" type="checkbox"  value="Bikes" /> Bikes</p>
<
p><input name="field_name_1[]" type="checkbox" value="Cars" /> Cars</p

The [] is crucial to gathering multiple values for one field smile

You’ll need to create a new notifcation template:

CP Home ›  Modules ›  Freeform ›  Manage Templates

Click Create New Template near the top right.

Just fill in the necessary fields… your custom fields act just like regular custom fields. smile

{field_name_1} 


Will display all values checked for that field smile

 Signature 

Check out the new Solspace Blog!

Profile