Hi there !
i’m using the contact form embeded in Enfold theme, it is simple and useful.
However, i would love to control a bit more what’s happening when the user click the submit button.
Is it possible to have a javscript function callback in the shortcode.js file, at this line :
send.button.bind('click', checkElements);
Or any other way to trigger a function on my own after the checkelements function is done ?
basically, i just want to show a message warning the user that the message is currently sending.
thanks
Cheers
Hey Voilaah!
You can add your message at the end of the checkElements function, so it basically goes like so.
function myCustomMessage() {
alert ('my custom message');
}
function checkElements () {
// Bunch of code here
myCustomMessage();
}
Cheers!
David