Need Checkboxes for non-members to check off
Posted: 20 November 2007 02:21 AM   [ Ignore ]
Newbie
Rank
Total Posts:  8
Joined  2007-07-03

Hi,

I would like to know if I can have a freeform with 4 custom ‘tick-boxes’ which non-members need to complete. Is this possible?

Thanks,

I am Paul

Profile
 
 
Posted: 20 November 2007 02:05 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Definately,

First, create your custom fields from the Manage Fields page in the Freeform CP:
CP Home ›  Modules ›  Freeform ›  Manage Fields
(Click the Create a New Field button at the top right of page)

In your form, use something similar to the Freeform documentation:

{exp:freeform:form form_name="some_form_name" return="template_group/thankyou_template"  required="name|email|checkbox1|checkbox2|checkbox3|checkbox4"}

<p>Name<br />
<
input type="text" name="name" value="" />
</
p>

<
p>Email<br />
<
input type="text" name="email" value="" />
</
p>

<
p>Checkbox 1:<br />
<
input name="checkbox1" type="checkbox" value="Checkbox 1" />
</
p>

<
p>Checkbox 2:<br />
<
input name="checkbox2" type="checkbox" value="Checkbox 2" />
</
p>

<
p>Checkbox 3:<br />
<
input name="checkbox3" type="checkbox" value="Checkbox 3" />
</
p>

<
p>Checkbox 4:<br />
<
input name="checkbox4" type="checkbox" value="Checkbox 4" />
</
p>

<
p>
<
input type="submit" name="submit" value="submit" />
</
p>

{/exp:freeform:form}

If you wanted the checkboxes to just be supplimental to ONE field, you could do it like this:

{exp:freeform:form form_name="some_form_name" return="template_group/thankyou_template"  required="name|email|ONEcheckbox"}

<p>Name<br />
<
input type="text" name="name" value="" />
</
p>

<
p>Email<br />
<
input type="text" name="email" value="" />
</
p>

<
p>Checkbox 1:<br />
<
input name="ONEcheckbox[]" type="checkbox" value="Checkbox 1" />
</
p>

<
p>Checkbox 2:<br />
<
input name="ONEcheckbox[]" type="checkbox" value="Checkbox 2" />
</
p>

<
p>Checkbox 3:<br />
<
input name="ONEcheckbox[]" type="checkbox" value="Checkbox 3" />
</
p>

<
p>Checkbox 4:<br />
<
input name="ONEcheckbox[]" type="checkbox" value="Checkbox 4" />
</
p>

<
p>
<
input type="submit" name="submit" value="submit" />
</
p>

{/exp:freeform:form}

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 23 March 2008 09:58 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  13
Joined  2007-12-03

When editing the contents of an array field created as above (that is, editing an entry), is there a way to display the entire array contents (not just the first item) in the editing fields?

All the items appear on the Entries page, but not when you select an entry to edit it.

Terry

Profile
 
 
Posted: 23 March 2008 07:22 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Sorry Terry,

At this point in time, no.

mk

 Signature 

Mitchell Kimbrough

Profile