<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: MailChimp and Checkboxes</title>
		<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes</link>
		<description>Gravity Support Forums Topic: MailChimp and Checkboxes</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 01:18:22 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/mailchimp-and-checkboxes" rel="self" type="application/rss+xml" />

		<item>
			<title>motherny on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-25223</link>
			<pubDate>Tue, 10 May 2011 15:26:40 +0000</pubDate>
			<dc:creator>motherny</dc:creator>
			<guid isPermaLink="false">25223@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks dndco,&#60;br /&#62;
I'll give it a try now and report back.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dndco on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-25216</link>
			<pubDate>Tue, 10 May 2011 14:57:02 +0000</pubDate>
			<dc:creator>dndco</dc:creator>
			<guid isPermaLink="false">25216@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi @mgyura and @motherny,&#60;/p&#62;
&#60;p&#62;These updates aren’t completely seamless so you will have to update some code hard coding a few values but on the front end it is working perfect for us.&#60;/p&#62;
&#60;p&#62;Browse to your gravityformsmailchimp folder -&#38;gt; open mailchimp.php&#60;br /&#62;
Scroll to line 592 OR search for “$merge_vars = $api-&#38;gt;listMergeVars($config[&#34;meta&#34;][&#34;contact_list_id&#34;]);” in the “private static function edit_page()” function.&#60;/p&#62;
&#60;p&#62;Paste this line of code right below the line of code above.&#60;br /&#62;
//Added by dndco to allow for the G-Form mapping of Hidden text group names. array_push($merge_vars, Array(&#34;name&#34;=&#38;gt;'INTERESTS', &#34;req&#34;=&#38;gt;&#34;&#34;, &#34;field_type&#34;=&#38;gt;&#34;text&#34;, &#34;public&#34;=&#38;gt;&#34;1&#34;, &#34;show&#34;=&#38;gt;&#34;1&#34;, &#34;order&#34;=&#38;gt;&#34;7&#34;, &#34;default&#34;=&#38;gt;&#34;&#34;, &#34;helptext&#34;=&#38;gt;&#34;&#34;, &#34;size&#34;=&#38;gt;&#34;25&#34;, &#34;tag&#34;=&#38;gt;&#34;INTERESTS&#34;));&#60;/p&#62;
&#60;p&#62;This forces an element into the merge_vars array called INTERESTS which you will map to your hidden field on your G-form through your Admin. &#60;/p&#62;
&#60;p&#62;You will most likely have to update the value assigned to “order” shown above. Order is where your interest group’s form element exists in your Mailchimp form. &#60;/p&#62;
&#60;p&#62;So if your Mailchimp form has these elements … FName, LName, Email, Group Checkboxes … order would be set at 4 for this example as your Group Checkboxes are in the 4th spot/location on the Mailchimp Form.&#60;/p&#62;
&#60;p&#62;Scroll to line 698 or search for “$merge_vars = $api-&#38;gt;listMergeVars($list_id);”&#60;br /&#62;
Paste this line of code again below the above line and make sure to update your order value to match the order of your Mailchimp list.&#60;/p&#62;
&#60;p&#62;//Added by dndco to allow for the G-Form mapping of Hidden text group names. array_push($merge_vars, Array(&#34;name&#34;=&#38;gt;'INTERESTS', &#34;req&#34;=&#38;gt;&#34;&#34;, &#34;field_type&#34;=&#38;gt;&#34;text&#34;, &#34;public&#34;=&#38;gt;&#34;1&#34;, &#34;show&#34;=&#38;gt;&#34;1&#34;, &#34;order&#34;=&#38;gt;&#34;7&#34;, &#34;default&#34;=&#38;gt;&#34;&#34;, &#34;helptext&#34;=&#38;gt;&#34;&#34;, &#34;size&#34;=&#38;gt;&#34;25&#34;, &#34;tag&#34;=&#38;gt;&#34;INTERESTS&#34;));&#60;/p&#62;
&#60;p&#62;Those two pieces of code will allow you to map your hidden G-Form element to a MailChimp form element called “INTERESTS” and will insert the group name into Mailchimp.&#60;/p&#62;
&#60;p&#62;*** YOU HAVE TO MAKE SURE YOUR G-FORM HIDDEN ELEMENT NAME/VALUE MATCHES YOUR MAILCHIMP GROUP NAME VALUE EXACTLY. ***&#60;/p&#62;
&#60;p&#62;ex. If your interest group for this form is “Fine Dining” then your hidden G-form element has to be “Fine Dining” spelled exactly the same.&#60;/p&#62;
&#60;p&#62;Now we will update a user’s info if they already exist in the list.&#60;/p&#62;
&#60;p&#62;Scroll to line 1059 or search for “$retval = $api-&#38;gt;listSubscribe($feed[&#34;meta&#34;][&#34;contact_list_id&#34;], $email, $merge_vars, &#34;html&#34;, $double_optin, false, true, $send_welcome );”&#60;/p&#62;
&#60;p&#62;Paste this code below the line of code above.&#60;/p&#62;
&#60;p&#62;//Start of dndco’s code&#60;br /&#62;
if (!$retval) {&#60;br /&#62;
	  switch($api-&#38;gt;errorCode) {&#60;br /&#62;
		case '214' :&#60;br /&#62;
		$retval = $api-&#38;gt;listUpdateMember($feed[&#34;meta&#34;][&#34;contact_list_id&#34;], $email, $merge_vars, &#34;html&#34;, false);&#60;br /&#62;
break;&#60;br /&#62;
default:&#60;br /&#62;
$errormsg = $api-&#38;gt;errorCode.&#34;:&#34;.$api-&#38;gt;errorMessage;&#60;br /&#62;
// send e-mail to admin with MailChimp Error&#60;br /&#62;
$emailAdmin = get_option('admin_email');&#60;br /&#62;
// Your subject&#60;br /&#62;
$subject = &#34;Gravity Form to MailChimp Error&#34;;&#60;br /&#62;
// Your message&#60;br /&#62;
$message = &#34;An error occurred during MailChimp insert for user &#34; . $email . &#34; Error information: &#34;;&#60;br /&#62;
$message.= $errormsg;&#60;br /&#62;
// send email&#60;br /&#62;
$sentmail = wp_mail($emailAdmin, $subject, $message);&#60;br /&#62;
break;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
//End of dndco’s code&#60;/p&#62;
&#60;p&#62;Code description: If $retval throws any type of error capture it and evaluate. Error code 214 means user already in list so we want to update info if error == 214. If error != 214 send an email to the admin of the WordPress site with the MailChimp error code, description and email address of user submitting the form.&#60;/p&#62;
&#60;p&#62;Again it’s not elegant but it works for our situation and allows us to have one MailChimp list with multiple interest groups. &#60;/p&#62;
&#60;p&#62;Hope this helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>motherny on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-24515</link>
			<pubDate>Fri, 29 Apr 2011 12:58:36 +0000</pubDate>
			<dc:creator>motherny</dc:creator>
			<guid isPermaLink="false">24515@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;dndco,&#60;br /&#62;
I could use the same functionality. Can you please share the update with me as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mgyura on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-24475</link>
			<pubDate>Thu, 28 Apr 2011 20:27:18 +0000</pubDate>
			<dc:creator>mgyura</dc:creator>
			<guid isPermaLink="false">24475@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;dndco,&#60;br /&#62;
This is exactly what I am trying to accomplish.  Would you mind sharing your code with me?&#60;/p&#62;
&#60;p&#62;Thank you for your time
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dndco on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-23179</link>
			<pubDate>Wed, 13 Apr 2011 15:54:02 +0000</pubDate>
			<dc:creator>dndco</dc:creator>
			<guid isPermaLink="false">23179@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, I could not wait for these enhancements to be made so I updated (hacked) the MailChimp 1.3.2 Add-on code myself to add this functionality.&#60;/p&#62;
&#60;p&#62;1) Hidden Gravity Form Text Field Maps to Mailchimp Groups. (The hidden field name and group name must match exactly or user doesn’t get inserted or updated.)&#60;/p&#62;
&#60;p&#62;2) If user already exists in the MailChimp list, update the user information in instead of doing nothing.&#60;/p&#62;
&#60;p&#62;3) If any type of insert/update error occurs when calling MailChimp API send email with error code, error description and the submitters information to admin of website.&#60;/p&#62;
&#60;p&#62;I'd be happy to share my code updates if this functionality is still desired by anyone.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-16544</link>
			<pubDate>Tue, 18 Jan 2011 16:21:39 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">16544@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Fair enough. Thanks for taking time to reply.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-16540</link>
			<pubDate>Tue, 18 Jan 2011 16:11:36 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">16540@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We do intend to add this functionality, but we don't have a time line yet. Their new API does support that feature, but it expects batches of emails to be added at once to a segment, so that might pose some problems with the integration since Gravity Forms adds one email at the time. I am pretty sure we will be able to figure something out, but to be honest, it will probably take a little while before we can get to this feature.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-16464</link>
			<pubDate>Mon, 17 Jan 2011 21:39:20 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">16464@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hmm, reading through this specific forum, though the topics didn't turn up in a search, it seems that this is an oft requested feature, and the response going back at least 10 months is that it's something planned.  Any time line?&#60;/p&#62;
&#60;p&#62;I'm assuming then their API supports it, it's just not built into the add-on?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-16461</link>
			<pubDate>Mon, 17 Jan 2011 21:11:12 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">16461@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, I just checked again, and it seems that even though MailChimp treats groups as part of the form, they aren't included in the List fields.&#60;/p&#62;
&#60;p&#62;I will follow up with them and report back anything I discover in case anyone else tries to bend these two tools in a manner they might not have originally been intended…
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "MailChimp and Checkboxes"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-and-checkboxes#post-16458</link>
			<pubDate>Mon, 17 Jan 2011 21:06:10 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">16458@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I had two groups in MailChimp that were hidden in their form for segmenting.  They don't show up as options to map a gravity form input (checkboxes). I set the group to not be hidden in MailChimp. They still don't show up as options to map a gravity form.&#60;/p&#62;
&#60;p&#62;In a perfect world, I make a single hidden field in gravity forms for a particular option on the group, and pass that to MailChimp for the Type field to a specific option.&#60;/p&#62;
&#60;p&#62;Ie, I have a group - Fruit. Options are apple, banana, grape. If visitor fills out form 4, I pass a hidden field to MailChimp for the Fruit group as apple.&#60;/p&#62;
&#60;p&#62;Any insight into why Gravity Forms isn't seeing these checkbox options?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
