• Resolved Tynermeister

    (@tynermeister)


    Hi, I was in touch before about adding placeholders (which was fantastic), but I’m upgrading the site and I now find the plugin no longer works.

    Whenever I try to send a message it returns with red error messages saying “this field can not be empty” for all fields.

    When I turn off the “required” box for them, the message sends no problem, but with blanks in all areas.

    So for some reason the form is deleting all info entered once the sent button is hit.

    I just today upgraded to the most recent version, so the code should be fine, so I’m not sure why it’s not working. :/

    Thanks for the help!

    https://www.ads-software.com/plugins/wcp-contact-form/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Tynermeister

    (@tynermeister)

    Shouldve mentioned the form is at the bottom of https://www.craigtyner.com/

    Thread Starter Tynermeister

    (@tynermeister)

    and that I upgraded to the most recent version of wordpress today as well.

    Plugin Author WebCodin

    (@webcodin)

    Hi Tynermeister,

    We will check how we can help you with your issue as soon as possible.

    Also, quick question, did you make some other changes except WP update?

    Thread Starter Tynermeister

    (@tynermeister)

    I updated quite a few other plugins, so if it’s an issue on my end, it’s probably that. Only thought of that now, so I’ll try disabling as many as i can, but that’s the only thing I can think of.

    Plugin Author WebCodin

    (@webcodin)

    Tynermeister,

    Here is screenshot from our demo site (last WP + last plugin version): https://clip2net.com/s/3o9MKsD

    Here is screenshot from your site: https://clip2net.com/s/3o9N85A

    All fields name on your site are equal – name=”scfp-placeholder”.

    By default all field names are generated automaticly and always have unique values. So based on screenshot from your site, we can’t define cause and explain how it can be possible.

    Thread Starter Tynermeister

    (@tynermeister)

    Ok, that’s from code you’ve sent me previously used to add placeholder text to the fields.

    I’ve removed the code now, and now all the field names are reading the same as the form on your site. It’s now working fine, but it’s a pity I now have no placeholder text.

    It’s unfortunate that a previous fix caused a new problem, but thank you for the quick support.

    Plugin Author WebCodin

    (@webcodin)

    Could you pls send code that you removed?

    Thread Starter Tynermeister

    (@tynermeister)

    Sure:

    It’s found here in this forum a few months ago.

    add_filter( ‘wcp_contact_form_get_fields_settings’, ‘tm6830_my_placeholders’ );
    function tm6830_my_placeholders ($data) {
    foreach ($data as &$item) {
    switch ($item[‘name’]) {
    case ‘Name’:
    $item[‘atts’][‘placeholder’] = ‘Your Name’;
    break;
    case ‘Email’:
    $item[‘atts’][‘placeholder’] = ‘Your Email’;
    break;
    case ‘Message’:
    $item[‘atts’][‘placeholder’] = ‘Type your message here’;
    break;
    default:
    break;
    }
    }
    return $data;
    }

    Plugin Author WebCodin

    (@webcodin)

    OK, seems we’ve found issue. We will update plugin tomorrow with fix for this issue and you will be able to use this code for placeholders.

    Thread Starter Tynermeister

    (@tynermeister)

    Thank you! ??

    Plugin Author WebCodin

    (@webcodin)

    Hi Tynermeister,

    Please update plugin version – and turn back code that you removed.
    Now it should work properly, but please retest form submission after hook usage.

    Thread Starter Tynermeister

    (@tynermeister)

    Awesome!

    Works perfectly. Forms are sending, and placeholder text is there.

    Thank you again!

    Plugin Author WebCodin

    (@webcodin)

    It is great that we were able to help you with your issue.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Form not recording data entered’ is closed to new replies.