Manage Groups in Advanced Forms

If you have a paid account and use advanced forms to capture subscriber information, you can manage groups as well. Below, you'll learn which merge tags you need to customize your lists.

For Forms

For each set of groups in your list, a unique grouping ID is assigned. You'll need this grouping ID to work with Groups in the Advanced Forms. The best way to get the grouping ID is to revert your forms to the defaults in order to generate the standard code we provide for the grouping IDs the signup form.

*|INTERESTCHECKED:X:n|* will print "CHECKED" if the nth interest group was chosen for the Grouping ID "X".

*|INTERESTSELECTED:X:n|* will print "SELECTED" if the nth interest group was chosen for Grouping ID "X".

In both of these, "n" is determined by the display order of the group options in the grouping, and nothing else, and resets at 1 for each grouping. Thus, if interest groups are removed or reordered, the forms will be incorrect.

Some Examples

The easiest way to handle Interest Groups in advanced forms is to revert all your designs and they'll include the default interest group tags and syntax.

To modify an Interest Grouping to look like you want it, you'll need to have a form element "group" which will be used for the Interest Group (you can see an example by just going to the easy form implementation and viewing the source of the update profile page.)

(NOTE: "X" is the grouping ID, which can be found when you "revert" your forms, or you can generate an embed form for your list to get the ID's for each grouping.)

So, for a drop down menu the code would look like this for Interest Groups:

<select name="group" id=" group" >
<option value="1" *|INTERESTSELECTED:1|*>Cars</option>
<option value="2" *|INTERESTSELECTED:2|*>Trains</option>
<option value="4" *|INTERESTSELECTED:3|*>Planes</option>
<option value="8" *|INTERESTSELECTED:4|*>Motorcycles</option>
<option value="16" *|INTERESTSELECTED:5|*>Trucks</option>

For a checkbox it'd look like this:

<input type=checkbox name="group[X]" value="1" *|INTERESTCHECKED:X:1|*> Cars   
<input type=checkbox name="group[X]" value="2" *|INTERESTCHECKED:X:2|*> Trains   
<input type=checkbox name="group[X]" value="4" *|INTERESTCHECKED:X:3|*> Planes   
<input type=checkbox name="group[X]" value="8" *|INTERESTCHECKED:X:4|*> Motorcycles   
<input type=checkbox name="group[X]" value="16" *|INTERESTCHECKED:X:5|*> Trucks

For radio buttons:

<input type=radio name="group[X]" value="1" *|INTERESTCHECKED:X:1|*> Cars   
<input type=radio name="group[X]" value="2" *|INTERESTCHECKED:X:2|*> Trains   
<input type=radio name="group[X]" value="4" *|INTERESTCHECKED:X:3|*> Planes   
<input type=radio name="group[X]" value="8" *|INTERESTCHECKED:X:4|*> Motorcycles   
<input type=radio name="group[X]" value="16" *|INTERESTCHECKED:X:5|*> Trucks

For a multiple select group:

<select name=" group[X]" id=" group_X" multiple>   
<option value="1" *|INTERESTSELECTED:X:1|*>Cars</option>   
<option value="2" *|INTERESTSELECTED:X:2|*>Trains</option>   
<option value="4" *|INTERESTSELECTED:X:3|*>Planes</option>   
<option value="8" *|INTERESTSELECTED:X:4|*>Motorcycles</option>   
<option value="16" *|INTERESTSELECTED:X:5|*>Trucks</option>   
Was this article helpful?
Anything else we can do to improve our site?

Technical Support