WordPress.org

Forums

Contact Form Manager
[resolved] reCaptcha missing closing DIV (2 posts)

  1. Travis Tubbs
    Member
    Posted 1 year ago #

    When using the reCaptcha option in Content Form Manager, I noticed it's not closing out one of the DIVs properly. When not using any CSS and only the the reCaptcha form field in the created form, here is the code it outputs:

    <script>jQuery(document).ready(function(){});</script>
    <script type="text/javascript">
      var xyz_cfm_date_format = "m/d/Y";
      function xyz_cfm_1_1_check() {
        var xyz_cfm_client_error = 0;
        if(xyz_cfm_client_error == 1) {
          return false;
        }
      }
    </script>
    
    <div id="xyz_cfm_siteFormContact_1_success" style="background: #C8FCBB;  text-align: center;  border-radius: 15px; margin-bottom: 20px;"></div>
    
    <form name="xyz_cfm_1_1" method="POST" id="xyz_cfm_1_1" enctype="multipart/form-data" onSubmit="return xyz_cfm_1_1_check();">
      <div id="reCaptchaDiv_6_1"></div>
      <span style="color:red;">*</span>
      <script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
      <script type="text/javascript">
        Recaptcha.create("6LcY0e4SAAAAAO1puY1LdrlzwIm-EguO6jP5MTl2","reCaptchaDiv_6_1", {theme: "clean"});
      </script>
      <input type="hidden" name="xyz_cfm_hiddenReCaptcha" value="1" id="xyz_cfm_reCaptcha_6_1">
      <div style="font-weight: normal;color:red;" id="captcha_siteFormContactConfirm_6_1">
        <input type ="hidden" name="xyz_cfm_frmName_1"  value="siteFormContact" >
    </form>

    If you notice the field with ID captcha_siteFormContactConfirm_6_1 near the end doesn't close its DIV. I see Line 1318 in create-contact-form.php is where this is created but I'm not sure your intent was on where the closing tag should be placed.

    https://wordpress.org/plugins/contact-form-manager/

  2. f1logic
    Member
    Plugin Author

    Posted 1 year ago #

    thank you.
    we have fixed this.
    will be updating this week itself.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic