I have the Mailchimp app set up on a staging site.
Form has fields set up as instructed in https://docs.grabaperch.com/ad…amples/subscription-form/
form.html
Code
- <perch:form id="former_pupils" method="post" app="perch_mailchimp perch_forms" class="form">
- <h3 class="form__heading">Get in touch</h3>
- <p class="form__row">
- <perch:label for="first-name" class="form__label"><span class="visually-hidden">First Name</span>
- <perch:input type="text" id="first-name" required="true" placeholder="First Name*" label="First Name" class="form__input" mailer="FNAME" />
- <perch:error for="first-name" type="required"><span class="form__error">Please add a first name</span></perch:error>
- </perch:label>
- <perch:label for="last-name" class="form__label"><span class="visually-hidden">Last Name</span>
- <perch:input type="text" id="last-name" required="true" placeholder="Last Name*" label="Last Name" class="form__input" mailer="LNAME" />
- <perch:error for="last-name" type="required"><span class="form__error">Please add a last name</span></perch:error>
- </perch:label>
- </p>
- <p class="form__row">
- <perch:label for="previous-name" class="form__label"><span class="visually-hidden">Previous Name when at ... (if applicable)</span>
- <perch:input type="text" id="previous-name" placeholder="Previous Name when at ... (if applicable)" label="Previous Name" class="form__input" />
- </perch:label>
- <perch:label for="date-of-birth" class="form__label"><span class="visually-hidden">Date of Birth</span>
- <perch:input type="text" id="date-of-birth" placeholder="Date of Birth" label="Date of Birth" class="form__input"/>
- </perch:label>
- </p>
- <p class="form__row">
- <perch:label for="email" class="form__label"><span class="visually-hidden">Email Address</span>
- <perch:input type="email" id="email" required="true" placeholder="Email Address*" label="Email Address" class="form__input" mailer="email" />
- <perch:error for="email" type="required"><span class="form__error">Please add an email address</span></perch:error>
- <perch:error for="email" type="format"><span class="form__error">Please check the email format</span></perch:error>
- </perch:label>
- <perch:label for="mobile" class="form__label"><span class="visually-hidden">Mobile Number</span>
- <perch:input type="tel" id="mobile" placeholder="Mobile Number" label="Mobile Number" class="form__input"/>
- </perch:label>
- </p>
- <p class="form__row">
- <perch:label for="senior-school" class="form__label"><span class="visually-hidden">Senior school after ..</span>
- <perch:input type="text" id="senior-school" placeholder="Senior school after ..." label="Senior school after..." class="form__input"/>
- </perch:label>
- </p>
- <p class="form__row">
- <perch:label for="year-left" class="form__label"><span class="visually-hidden">Year you left ..</span>
- <perch:input type="select" id="year-left" options="<perch:forms id="year_range">" placeholder="Year you left .." label="Year you left ..." class="form__input"/>
- </perch:label>
- </p>
- <p class="form__row">
- <perch:label for="parent" class="form__label">
- <perch:input type="checkbox" id="parent" value="true" class="form__input"/>
- <span class="form__checkmark"></span>
- <span class="form__checkbox"></span>
- <span class="form__text">Former Parent</span>
- </perch:label>
- <perch:label for="pupil" class="form__label">
- <perch:input type="checkbox" id="pupil" value="true" class="form__input"/>
- <span class="form__checkmark"></span>
- <span class="form__checkbox"></span>
- <span class="form__text">Former Pupil</span>
- </perch:label>
- </p>
- <p class="form__row">
- <perch:label for="confirm" class="form__label">
- <perch:input type="checkbox" id="confirm" required value="1" class="form__input" mailer="confirm_subscribe">
- <span class="form__checkmark"></span>
- <span class="form__checkbox"></span>
- <span class="form__text">I am happy to receive communications from.</span>
- <perch:error for="subscribe" type="required"><span class="form__error">Please confirm that you would like be contacted by us.</span></perch:error>
- </perch:label>
- </p>
- <p class="form__row">
- <perch:input type="submit" id="submit" value="Submit" class="form__btn"/>
- <perch:input type="hidden" id="list" value="569758419e" mailer="list">
- </p>
- <perch:success>
- <p class="form__row form__success">Thank you for registering your interest! We will be in touch shortly.</p>
- </perch:success>
- </perch:form>
I have been submitting dummy data in the form, but nothing seems to be registering in the mailchimp section of the CMS or in the mailchimp account.
See attached images and CMS Diagnostic info.