Modifying the success message to include anchors
-
Hello Takayuki
I want to include a clickable link in the success message. What I did was creating an eventlistener to the mailsent event. Event though this changed the message HTML, the default message (one specified in the CMS) always shows up.
What is the correct way to achieve this result?
document.addEventListener( 'wpcf7mailsent', function( event ) { var success_element = document.getElementsByClassName('wpcf7-mail-sent-ok'); console.log(success_element[0]); success_element[0].innerHTML="Thank you for your time, we will be in touch soon. Meanwhile, do visit our site at <a href='#' > website </a>"; console.log(success_element[0].innerHTML); }, false );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Modifying the success message to include anchors’ is closed to new replies.