Simple MailChimp
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Jeremy Worboys
Making fields other than Email required
Support (Resolved)
MarkS
|
Posted: 20 October 2014 11:32 AM |
|
|
|
Hi,
having trouble getting other form fields to be required. When I hit submit, only the Email field appears to be validated.
See my code here:
Thanks in advance.
{exp:simple_mailchimp api_key="xxxxxxxxx-us2" list_id="xxxxxxx" email_field="EMAIL" error_delimeters='<p class="error">|</p>'} {if success} <p class="success"><strong>Success! Check your email to activate your subscription.</strong></p> {if:else} <p class="form-element"> {label:EMAIL} {merge:EMAIL attr:class="txtbox"} {error:EMAIL} </p> <p class="form-element"> {label:FNAME} {merge:FNAME attr:class="txtbox"} {error:FNAME} </p> <p class="form-element"> {label:LNAME} {merge:LNAME attr:class="txtbox"} {error:LNAME} </p> <p class="form-element"> {label:MMERGE3} {merge:MMERGE3 attr:class="txtbox"} {error:MMERGE3} </p> <p class="form-element"> {label:MMERGE4} {merge:MMERGE4 attr:class="txtbox"} {error:MMERGE4} </p> <p class="form-element"> {label:MMERGE5} {merge:MMERGE5 attr:class="txtbox"} {error:MMERGE5} </p> {submit attr:id="submit"} {/if} {/exp:simple_mailchimp}
|
|
|
Jeremy Worboys
|
Posted: 20 October 2014 04:40 PM |
# 1
|
|
Developer
|
Hi,
Validation rules are pulled from MailChimp.
If you log into MailChimp and open the list. Under the list settings menus select “List fields and *|MERGE|* tags”. From this screen you will be able to select which fields are required.
|
|
|
MarkS
|
Posted: 21 October 2014 02:06 AM |
# 2
|
|
|
Hi Jeremy, thanks for your reply. Those check boxes were already selected. See attached screen grab. Thanks
|
|
|
Jeremy Worboys
|
Posted: 21 October 2014 04:56 AM |
# 3
|
|
Developer
|
Hmm.. That’s peculiar. In the system/expressionengine/third_party/simple_mailchimp there should be a _cache . Try deleting all files in this cache directory and see if that works. If it still doesn’t, could you attach the newly generated cache file to this thread?
|
|
|
MarkS
|
Posted: 21 October 2014 05:05 AM |
# 4
|
|
|
Boom that solved it.
Thanks!
|
|
|
Jeremy Worboys
|
Posted: 21 October 2014 05:09 AM |
# 5
|
|
Developer
|
Awesome! Thanks.
|
|
|