ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

MSM - Can’t submit form - problem with CAPTCHA

May 20, 2010 1:18pm

Subscribe [2]
  • #1 / May 20, 2010 1:18pm

    Michael Swanson

    32 posts

    I am having the same issue as triom was here:

    http://ellislab.com/forums/viewthread/87068/

    I am running EE 1.6.9 Build: 20100430 and MSM 1.1 Build: 20091201.  I have two sites setup on MSM. The main site and the subsite both use the same captcha settings and point to the same folder on the main site.  I am able to see the captcha image on both sites, but when I fillout the form and type in the correct captcha on the subsite it gives me the following error:

    “In order to submit this form, you must complete the captcha field.”

    Captcha works fine on the main site.  Please help.

    Thanks

    Michael

  • #2 / May 20, 2010 6:56pm

    Brandon Jones

    5500 posts

    Hi Michael,

    This occurs on the comment submission form, correct? Can you try adding the site=’[site_short_name]’ parameter to your comment form tag?

    There’s a note in the documentation that this is needed if the associated weblog is from a different site. Does that help?

  • #3 / May 27, 2010 1:37pm

    Michael Swanson

    32 posts

    Hey Brandon,

    It is actually not a comment form it is a contact form that uses freeform. Here is the code of the form:

    {exp:freeform:form form_name="Contact" form_id="contact_us" return="site_includes/ajax_form_return" required="name|email|company|phone|interest|message" notify="[email protected]" template="default_template"}
    <div class="form_field left">
      <label for="name" class="hidden">Name</label>
      <input type="text" name="name" value="" id="name" class="text" />
    </div>
    <div class="form_field left">
      <label for="company" class="hidden">Company</label>
      <input type="text" name="company" value="" id="company" class="text right_col" />
    </div>
    <div class="form_field left">
      <label for="email" class="hidden">Email</label>
      <input type="text" name="email" value="" id="email" class="text" />
    </div>
    <div class="form_field left">
      <label for="phone" class="hidden">Phone</label>
      <input type="text" name="phone" value="" id="phone" class="text right_col" />
    </div>
    <div class="form_field clear">
      <label for="interest" class="inline_label">I am interested in:</label>
      <select name="interest" id="interest">
        <option value="">-- Select One --</option>
        <option value="learn about your services">Learn About Your Services</option>
        <option value="selling my services">Selling My Services</option>
        <option value="internships">Internships</option>
        <option value="Other">Other (please provide a message)</option>
      </select>
    </div>
    <div class="form_field">
      <label for="message" class="hidden">Message</label>
      <textarea name="message" id="message" class="textbox"></textarea>
    </div>
    {if captcha}
    <div id="captcha-container"> {captcha}
    
      <label for="captcha" class="hidden">Verify Your Humanity</label>
      <input type="text" name="captcha" id="contact_captcha" value="" class="text" maxlength="20">
    </div>
    {/if}
    <div class="form_field">
      <input type="submit" name="btn_contact_send" value="Send" id="btn_contact_send" />
      <input type="button" name="btn_contact_close" value="Close" id="btn_contact_close"/>
    </div> 
    {/exp:freeform:form}

    Could it have something to do with using freeform?

  • #4 / May 27, 2010 7:09pm

    Brandon Jones

    5500 posts

    It’s possible, try a new template with just the standard email contact form and see if that works. Be sure the email module is installed and Freeform is disabled when testing. Does the CAPTCHA work there?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases