M
M
mipfikus2020-05-19 22:54:56
JavaScript
mipfikus, 2020-05-19 22:54:56

How to change button text in CF7 plugin?

Contact Form Plugin - Contact Form 7 It is
necessary that when the form is successfully submitted, the button text changes from "submit" to "sent". How to implement?
Here is the successful send event:

var wpcf7Elm = document.querySelector( '.wpcf7' );
wpcf7Elm.addEventListener( 'wpcf7submit', function( event ) {
 //что тут?
}, false );

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Polos, 2020-05-19
@mipfikus

Look in the documentation for information on the request: "cf7 dom events"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question