Back to Top

How to hide the success message from Contact Form 7?

How to hide the success message from Contact Form 7

Contact form 7 is most common in every wordpress site. Its a very common and useful plugin for creating a contact form in wordpress.

About Contact Form7

Contact form 7 provides many controls to handle the customization you want for your different kind of websites.There is an action hooks and filters which manage your customization without modifying core files of plugin.

Today i am going to explain how to hide success or failure message in form after some time in contact form 7. However, I am going to sharing a way which is very easy and you need to place into admin panel. No changes in file at all.

Sometimes, error or success message create issue like add extra space and break the content, break html format or even display if you reopen form without refresh on popup.so i will fade out the success message after sometime.

Soltution to hide the success message

Let’s checkout the solution to fadeout content.

First of all , Login in admin panel and select contact form 7 menu from left panel.

Next, edit form you want to change and go to bottom of it. You will get box named as “Additional Settings”.In the “Additional Settings” box, add following line of code.

Thats it. You can use code.If you have any query or question,tell us in the comment section :). Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Comments (21)

  1. Thank you. Good work.

  2. it works… but i haven’t found how to hide the form after submitting

  3. Hi,
    i want to hide contact form not massage

    1. You can set this from admin panel to hide form.

  4. Michell Jose Gutierrez Rincon says:

    Thanks!

  5. Hi! I’m quite new to wordpress and i don’t know how to code.
    What i want to do is modify the success message
    “Thank you for your message. It has been sent.” and to put my own.
    Do you know how to do that?

    Thanks!

    1. You can check message from admin panel. Once you create form from contact form plugin, you will get tab for Messages and from that you can change the message.

  6. Hi Bhumi,

    With the latest CF7, the success message is a flyout type of message. We are trying to do a redirect after the form is submitted and do not want the green exclamation icon and success message to appear prior to the redirect. Do you know of a way to hide that or prevent it from showing up?

  7. I have been trying to hide the form but using the code as said here above shows me “1 configuration error detected in this tab panel” in the Additional Settings tab.

    I tried many thing css way, script way everything but it always says “1 configuration error detected in this tab panel”

    Help is appreciated.

  8. Rajender Singh says:

    Hello Mem
    Can you help me? i want to hide contact form 7 Validation error message box below form.

    1. can you explain more?Do you want to remove message after displaying it?

      1. Contact Form 7 says this: on_sent_ok: “$(‘.wpcf7-mail-sent-ok’).ajaxComplete(function(){$(this).delay(2000).fadeOut(‘slow’);});”
        is now depreciated. Could you advise another way? Thank you

  9. Hi, I need to hide the CF7 successful submission message completely. There shouldn’t be any delay. It should not appear after submission.

  10. Hi,
    I find your site and tips great, so thank you. Sadly, I have only just come across this tip, which I really need to work.
    Contact Form 7 has stopped using On_sent_ok and instead does something I cannot understand with DCOM? Can you help me get this called through the new way…Please 😎

  11. hi, when i put this code in additional setting i got this error

    1 configuration error detected in this tab panel

  12. on_sent_ok is deprecated. Can you show an example of how to do that using DOM Events?

  13. Timothy Robi says:

    Im getting the error
    ” Deprecated settings are used.”

  14. Akshay Pavecha says:

    Hi
    After adding the code i.e.
    on_sent_ok: “$(‘.wpcf7-mail-sent-ok’).ajaxComplete(function(){$(this).delay(2000).fadeOut(‘slow’);});”

    Its showing me 2 errors

    1 configuration error detected in this tab panel
    Deprecated settings are used.

  15. I’m having the same problem that @Akshay post it not works with fade animation…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

Getting Started with LESS CSS

Posted on 9 years ago

Bhumi

How to use MySQL TimeStamp datatype

Posted on 12 years ago

Bhumi

How to use Placeholder image?

Posted on 11 years ago

Bhumi