You need to sign in to do that
Don't have an account?
LWI
getting onclick javascript error, button hasn't changed
We are getting a js error "missing ) after argument list" on a js button that hasn't changed and was working in the past.
{!REQUIRESCRIPT("/soap/ajax/36.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/36.0/apex.js")}
if(("{!Order_Line_Items1__c.ProductID__c}" == "01t30000002pMsV"
|| "{!Order_Line_Items1__c.ProductID__c}" == "01t30000002p6AL")
&& "{!Order_Line_Items1__c.Lot_Datecode__c}" == "") {
alert("Product is "+"{!Order_Line_Items1__c.product_name_cust_part_no__c}"+" - Enter Lot Datecode");
} else {
window.location.href="/apex/certificate_of_compliance?id="+"{!Order_Line_Items1__c.Id}"+"&showlotcode=0";
}
{!REQUIRESCRIPT("/soap/ajax/36.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/36.0/apex.js")}
if(("{!Order_Line_Items1__c.ProductID__c}" == "01t30000002pMsV"
|| "{!Order_Line_Items1__c.ProductID__c}" == "01t30000002p6AL")
&& "{!Order_Line_Items1__c.Lot_Datecode__c}" == "") {
alert("Product is "+"{!Order_Line_Items1__c.product_name_cust_part_no__c}"+" - Enter Lot Datecode");
} else {
window.location.href="/apex/certificate_of_compliance?id="+"{!Order_Line_Items1__c.Id}"+"&showlotcode=0";
}