lundi 29 décembre 2014

Additional Setting in Contact Form 7


I desperately need some help here. I have 2 submit buttons on my contact form and they both redirect to different URLs base on conditional logic. But unfortunately it is not working. I was wondering if some here in this forum can help me construct the logic. here is my code. I don't understand why my else if condition is not working, how can I make this work?? Any help would be highly appreciated !!.


Additional settings. on_sent_ok: "if(document.getElementById('paynow') && document.getElementById('chessrating').value> 2200) else if(document.getElementById('paylater')) {location.replace('http://www.greensborochess.org/thank-you-for-your-participation')} else {location = 'https://www.paypal.com/?cmd=_xclick&business=greensborochessclub@gmail.com&currency_code=USD&amount='+jQuery....................+' ';}"


Many Thanks Jacob





Aucun commentaire:

Enregistrer un commentaire