Plugin

Archived
Forum
(read-only)

Jeremy Worboys does not actively monitor this forum
(but you can still get help from other EE users).

Simple MailChimp

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Jeremy Worboys

     

You must be logged in to post.

Making fields other than Email required

Support (Resolved)

MarkS
MarkS

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}
     
<class="success"><strong>SuccessCheck your email to activate your subscription.</strong></p>
    
{if:else}
     
<class="form-element">
     
{label:EMAIL}
     {merge
:EMAIL attr:class="txtbox"}
     {error
:EMAIL}
     
</p>
     <
class="form-element">
     
{label:FNAME}
     {merge
:FNAME attr:class="txtbox"}
     {error
:FNAME}
     
</p>
     <
class="form-element">
     
{label:LNAME}
     {merge
:LNAME attr:class="txtbox"}
     {error
:LNAME}
     
</p>
     <
class="form-element">
     
{label:MMERGE3}
     {merge
:MMERGE3 attr:class="txtbox"}
     {error
:MMERGE3}
     
</p>
     <
class="form-element">
     
{label:MMERGE4}
     {merge
:MMERGE4 attr:class="txtbox"}
     {error
:MMERGE4}
     
</p>
     <
class="form-element">
     
{label:MMERGE5}
     {merge
:MMERGE5 attr:class="txtbox"}
     {error
:MMERGE5}
     
</p>
     
{submit attr:id="submit"}
    {
/if}
    
   {
/exp:simple_mailchimp} 
Jeremy Worboys
# 1
Developer
Jeremy Worboys

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
# 2
MarkS

Hi Jeremy, thanks for your reply. Those check boxes were already selected. See attached screen grab. Thanks

Jeremy Worboys
# 3
Developer
Jeremy Worboys

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
# 4
MarkS

Boom that solved it.

Thanks!

Jeremy Worboys
# 5
Developer
Jeremy Worboys

Awesome! Thanks.