Viewing 1 replies (of 1 total)
  • Hello,

    First, sorry if my english is not correct…

    Second, I had the same issue and I resolved this:
    The new structure of the tag for checkmail is [checkmail checkmail-email id:chk-email watermark “email-tag-name” “text in the textbox”]

    I modified the plugin to recognize the “watermark” label, and get the second value to show in the text box

    In the line 72, you modify the foreach same this:
    foreach ( $options as $option ) {
    if ( preg_match( ‘%^id:([-0-9a-zA-Z_]+)$%’, $option, $matches ) ) {
    $id_att = $matches[1];
    } elseif ( preg_match( ‘%^class:([-0-9a-zA-Z_]+)$%’, $option, $matches ) ) {
    $class_att .= ‘ ‘ . $matches[1];
    } elseif ( preg_match( ‘%^watermark$%’, $option ) ) {
    $atts .= ‘ title=”‘ . $values[1] . ‘”‘;
    $class_att .= ‘ wpcf7-use-title-as-watermark’;
    }
    }

    This is correct for me…

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Checkmail validation for Contact Form 7] Add text inside the checkmail textbox?’ is closed to new replies.