You need to sign in to do that
Don't have an account?
GRStevenBrookes
Problem with Java Button
Hi All,
Sure this is a syntax problem, but cant get my head around it:
{!REQUIRESCRIPT("/soap/ajax/18.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/18.0/apex.js")} var connection =sforce.connection; var CA = "{!CMC__c.DEBUG_ofCompletedAssessments__c}"; var User = "{!$User.Full_Name__c}", var CR = "{!CMC__c.Case_Reason__c}", var URL = "{!CMC__c.UAT_QAT_Zoomerang_URL__c}", IF( AND( CA <1, OR( CR = "New Script QAT", CR = "New Script UAT" ) ) { window.open('URL'); } ) else{ alert("Either an Assessment is not applicable for this case, or you are not authorised to complete assessments"); }
I get 'Unexpected Identifier' when clicking?
Any help appreciated.
Hi GRStevenBrookes ,
var User = "{!$User.Full_Name__c}", replace ',' -->;
var CR = "{!CMC__c.Case_Reason__c}", replace ',' -->;
var URL = "{!CMC__c.UAT_QAT_Zoomerang_URL__c}", replace ',' -->;