WordPress.org

Ready to get started?Download WordPress

Forums

Nmedia MailChimp Widget
Required fields don't show asterisk (4 posts)

  1. mjpg
    Member
    Posted 1 year ago #

    Summary: Forms with required fields do not show this when embeded in a page with a shortcode.

    Steps I followed:
    Entered API and connected OK to Mailchimp.
    Used form wizard to make a form with required fields
    Added shortcode to page.
    Tested that form shows validation message.
    Tested form works OK and form sends OK to mailchimp.

    Problems:
    1. The form on the wordpress page does not show any required field - eg:
    Last Name *

    2. Validation error messages under the form just show the merge code - eg:
    MMERGE8 is required
    Can this be customised to allow messages that people can relate to the form?

    I am using plugin Version 3.2.2

    http://wordpress.org/extend/plugins/nmedia-mailchimp-widget/

  2. N-Media
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    well it shouldn't show the strange validation message. please provide me your site link.

  3. mjpg
    Member
    Posted 1 year ago #

    Thanks for your quick reply.

    The site is not public, so I cannot send you a link.

    The firebug source for the error is:

    <div id="mc-response-area">
    <div class="nm_mc_error">
    EMAIL is required
    <br>
    FNAME is required
    <br>
    LNAME is required
    <br>
    MMERGE5 is required
    <br>
    Email address is invalid
    <br>
    </div>
    </div>

    The source code is:

    <style>
    .nm_mc_input{width:150px;}</style>
    
    <div class="nm_mc_form">
      <input type="hidden" value="7" id="nm_mc_form_id-1353512381" />
      <ul>
            <li>
          <label for="EMAIL-1353512381">Email Address</label>
          <input type="text" name="nm-form-meta[EMAIL]" id="EMAIL-1353512381" class="nm_mc_input" />
        </li>
            <li>
          <label for="FNAME-1353512381">First Name</label>
          <input type="text" name="nm-form-meta[FNAME]" id="FNAME-1353512381" class="nm_mc_input" />
        </li>
            <li>
          <label for="LNAME-1353512381">Last Name</label>
          <input type="text" name="nm-form-meta[LNAME]" id="LNAME-1353512381" class="nm_mc_input" />
        </li>
            <li>
          <label for="MMERGE5-1353512381">Postcode</label>
          <input type="text" name="nm-form-meta[MMERGE5]" id="MMERGE5-1353512381" class="nm_mc_input" />
        </li>
            <li>
          <input type="button" class="nm_mc_button" value="Send" id="nm_mc_button-1353512381" onclick="postToMailChimp('DOMAIN/wp-content/plugins/nmedia-mailchimp-widget/api_mailchimp/postToMailChimp.php', 'DOMAIN/wplive/', '1353512381', '')" / >
         <img style="display:none" id="nm-mc-loading" src="DOMAIN/wp-content/plugins/nmedia-mailchimp-widget/images/loading.gif" />    <div id="mc-response-area">
    	</div>
        </li>
      </ul>
    </div>
  4. mjpg
    Member
    Posted 1 year ago #

    And what about the required field indication?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags