Support » Plugin: Contact Form 7 » Change color of submit button on confirmation?

  • Resolved koltast


    Hey community!

    Is it possible to change the color of the submit button depending on whether the message was sent or not?
    Would be a great way to show the user if it was a success…

    Thanks a lot and have a great day.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi


    The <form> element will have sent class attribute value when the email has been sent successfully, failed when it has failed, invalid when there are invalid fields, and spam when an anti-spam mod has detected a spammy activity, so customize the style using these classes in a CSS stylesheet.



    The master himself!

    Thanks a lot for your hint, now it works…
    I didn’t think of those classes, thanks so much, you’re a genius 🙂

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.