You need to sign in to do that
Don't have an account?
sfdc sfdc 126
A problem with onclick javascript for this button or link was encountered missing ) after argument list in javascript salesforce
Can Some one help me what is missing there .. it worked perfectly fine till today morning .. but suddenly i got the error some argument is missing
{!REQUIRESCRIPT("/soap/ajax/35.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/35.0/apex.js")}
if('{!Account.Account_Checked__c}'==1){ window.open('https://c.ap12.visual.force.com/apex/AccountChecked');
}
else{ window.open('_ui/core/email/author/EmailAuthor?p2_lkid={!Contact.Id}&p3={!Account.Name}&rtype=003&retURL=%2F{!Contact.Id}');
}
{!REQUIRESCRIPT("/soap/ajax/35.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/35.0/apex.js")}
if('{!Account.Account_Checked__c}'==1){ window.open('https://c.ap12.visual.force.com/apex/AccountChecked');
}
else{ window.open('_ui/core/email/author/EmailAuthor?p2_lkid={!Contact.Id}&p3={!Account.Name}&rtype=003&retURL=%2F{!Contact.Id}');
}
You dont need to add Requirescript , you can simply do this by below code:-
if({!Account.Account_Checked__c} == true) {
window.open('/apex/AccountChecked');
}
else {
window.open('_ui/core/email/author/EmailAuthor?p2_lkid={!Contact.Id}&p3={!Account.Name}&rtype=003&retURL=%2F{!Contact.Id}');
}
{!REQUIRESCRIPT("/soap/ajax/35.0/apex.js")}
Neither o fthe below is working. I am using _target as I need to open the Email in a new tab. Please help. Thanks,