Support » Plugin: WDContactFormBuilder » send a copy checkbox & email address validation issues

  • Resolved geth44

    (@geth44)


    Hi,

    For the 1st issue, if I activate the ‘Send a copy of this message…’ checkbox, I got some troubles in the page:
    Chaptcha doesn’t appear (Style=”Display: hidden;”) in code
    Nothing appens when click on button “Submit” or “Reset”
    probably due to this syntax error reported in Firebug:

    SyntaxError: missing ) after argument list
    ...Query("<input type="hidden" name="wdform_send_copy_10" value = "1" />").appendT

    About the 2nd issue, when submit (after deactivated the checkbox), I got this error message: This is not a valid email address.
    Looking at the code, here is the regex found:
    if (jQuery("#wdform_4_element10").val().search(/^w+((-w+)|(.w+))*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$/) == -1)
    As you can see on the first part of the regex the ‘\w’ is replaced(?) by a single ‘w’ …

    Contact Form Builder Version 1.0.32
    page link: http://www.sp3h.eu/v2013/tst/contact-2/

    Thanks in advance for help

    TG

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter geth44

    (@geth44)

    Hi,

    For the 1st issue, my temporary solution was to comment the $onsubmit_js ... full definition in the case 'type_send_copy': in CFMViewForm_maker.php file. I don’t understand the purpose of the input defined in this part of the code as I couldn’t find any other reference to wdform_send_copy_(id) anywhere in the plugin. Anyway, at the moment that solves my problem …

    Note: I don’t see an interest to have the ability to set this checkbox as required or not

    And for the 2nd issue, it seems there is a stripslashes() function, may be at the template level, that is performed on the regex. I don’t know if there is a way to avoid this kind of filter to be done, so my temporary solution was to put 4 backslashes in the code to finally keep one.

    My form works now, but it could be great to solve these problems by another way …

    TG

    Sona

    (@support-web-dorado)

    Dear geth44,

    The stated issues are not present with the Form Maker, most likely those are coming from another source. Please contact us at support[at]web-dorado.com for the details. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘send a copy checkbox & email address validation issues’ is closed to new replies.