Forum
Custom Fields Not Going through to MailChimp
I am using the mailchimp app in runway to create a sign up form. The sign up process is working - the email address is submitted and the please confirm your subscription email is sent. When the email address is confirmed not all fields from the form are showing up in mailchimp. FFSIGNUP does not have a value in mailchimp even though the form field has a value.
<div class="row text-center">
<div class="col-sm-12 text-center space-bottom-medium">
<div class="form-contact-us clearfix">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="row">
<perch:form app="perch_mailchimp" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" double-optin="true" class="validate" prefix="none">
<div id="mc_embed_signup_scroll">
<div class="mc-field-group col-sm-6">
<perch:input type="text" value="" name="FNAME" mailer="FNAME" class="validate-required" id="FNAME" placeholder="First Name *" required="true" />
<perch:error type="required" for="FNAME">Required field</perch:error>
</div>
<div class="mc-field-group col-sm-6">
<perch:input type="text" value="" name="LNAME" mailer="LNAME" class="validate-required" id="LNAME" placeholder="Last Name *" required="true" />
<perch:error type="required" for="LNAME">Required field</perch:error>
</div>
<div class="mc-field-group col-sm-12">
<perch:input id="email" required="true" class="validate-required" type="email" mailer="email" placeholder="Email *" />
<perch:error type="required" for="email">Required field</perch:error>
</div>
<div class="mc-field-group col-sm-4">
<perch:input type="text" value="" name="CCITY" mailer="CCITY" class="validate-required" id="CCITY" placeholder="City *" required="true" />
<perch:error type="required" for="CCITY">Required field</perch:error>
</div>
<div class="mc-field-group col-sm-4">
<perch:input type="text" value="" name="SSTATE" mailer="SSTATE" class="validate-required" id="SSTATE" placeholder="State *" required="true" />
<perch:error type="required" for="SSTATE">Required field</perch:error>
</div>
<div class="mc-field-group col-sm-4">
<perch:input type="text" value="" name="PPCODE" mailer="PPCODE" class="validate-required" id="PPCODE" placeholder="Zip/Postal Code *" required="true" />
<perch:error type="required" for="PPCODE">Required field</perch:error>
</div>
<div class="hidden">
<perch:label class="hidden" for="company">If you can see this field don't complete it</perch:label>
<perch:input type="text" id="company" antispam="honeypot" class="hidden" />
</div>
<div class="col-md-12 col-md-offset-0 col-sm-4 col-sm-offset-4 text-center"><perch:input input type="submit" value="Sign Up" name="subscribe" id="mc-embedded-subscribe" class="button btn btn-primary btn-filled" /></div>
<perch:input type="hidden" value="1" id="confirm" mailer="confirm_subscribe" />
<perch:input type="hidden" id="list" value="REMOVED BY ME" mailer="list" />
<perch:input type="hidden" escape="true" value="<perch:content id="pageName" />" mailer="FFSIGNUP" id="FFSIGNUP" name="FFSIGNUP" />
</div>
<div class="col-sm-12">
<perch:success><p id="success-message" class="bg-success show">Thanks for signing up, you should have a confirmation email in your inbox.</p></perch:success>
<perch:error><p id="error-message" class="bg-danger show">There seems to be an issue signing you up, please check all fields are enter correctly or try again later.</p></perch:error>
</div>
<div class="col-sm-12"><p class="indicates-required text-center"><span class="asterisk">*</span> indicates required</p>
<p>We <strong>never</strong> share emails with third parties</p></div>
</perch:form>
</div>
</div>
</div>
</div><!--end of photo form wrapper-->
</div>
</div><!--end of row-->
It should be passed through as part of the
merge_fields
argument to the create request.If you turn debug on, what does it output?
Hi
That's what I thought. If I include the form to go to the perch forms app the FFSIGNUP field doesn't show in the details page of the forms app either.
Here is the page load debug
And here is the form submit page load
Can you try not setting a
name
attribute? You shouldn't need to do that on aperch:input
tag, and I suspect it may be overriding the internal handling of the field aliases.Hi
Thanks I have tried that and no joy.
If I submit the form to the perch_forms app the field or field value don't show in the details.
If I have a static value on the field (FFSIGNUP has a dynamic value using PerchSystem::set_var) then it shows up in the form submission - is it a problem with the dynamic field value? Is there a work around for this?
Static value
Dynamic value
It looks like FFSIGNUP had a value of
test
- is that correct?When I set a static value (set the value in the template) yes. When it is a dynamic value it gets its value from PerchSystem::set_var using <perch:content id="pageName" /> in the template. This dynamic value is not processed by the form but the static value is.
Do you see the dynamic value in the source of the page before submitting the form?
Yes
On Subscribe page
on home page
here is debug from subscribe page if that' useful
Ok, then it shouldn't make any difference where the data originally came from.
I'm sure this should work, but without being able to debug it I've got nothing to suggest. I'll have to see if I can get something set up. How are your additional merge fields configured in MailChimp?
All merge fields are configured as text fields in MailChimp.
This is not my only form with the dynamic field issue - I have another form where the dynamic value is not recognised on submit to perch forms or perch mailchimp either. Is it an issue with PerchSystem::set_var and form submit?
No, if you can see it in the source of the HTML then it's there.
You should raise your other issue as a new thread - it may not be related.
Ok. So sticking with this this issue and the fact that the dynamic value is not recognised by the system on submit to either perch forms or perch mailchimp is there a work around? Have you been able to replicate the issue?