Support » Everything else WordPress » SugarCRM Lead script gets messed up in WordPress

  • I installed a SugarCRM lead script on the contact page in WordPress and I’m having issues. It works fine as an html page outside of WordPress but when it gets put on WordPress it gets messed up. I have put the ` tag around the javascript but it is still causing problems. Here is what it does:

    Part of the code gets changed to:

    function validateEmailAdd(){
    	if(document.getElementById('webtolead_email1').value.length >0) {
    		if(document.getElementById(’webtolead_email1′).value.match(/^\w+([’\.\-\+]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/) == null){
    		  alert(’Not a valid email address’);
    	if(document.getElementById(’webtolead_email2′).value.length >0) {
    		if(document.getElementById(’webtolead_email2′).value.match(/^\w+([’\.\-\+]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/) == null){
    		  alert(’Not a valid email address’);

    All of the &#8217 things are supposed to be single quotes ‘. How can I fix this?`

  • The topic ‘SugarCRM Lead script gets messed up in WordPress’ is closed to new replies.