You need to sign in to do that
Don't have an account?

missing ; before statement"
I have a custom button which is supposed to create a new page , but I'm getting the following error when I click it:
"A problem with the OnClick JavaScript for this button or link was encountered: missing ; before statement"
My button executes the following OnClick Javascript:
"A problem with the OnClick JavaScript for this button or link was encountered: missing ; before statement"
My button executes the following OnClick Javascript:
if({!Quote__c.Approved_Artwork_Attached__c} == 0) { alert('Approved Artwork has not been uploaded'); } else { window.location.href ='/apex/Testing?CF00N9000000810yt={!Quote__c.Opportunity__c}&CF00N9000000810yu={!Quote__c.Id}&CF00N9000000810yx={!Quote__c.Company_Name__c}&recordTypeName={!Quote__c.Record_type_name__c}'; } if({!Quote__c.Approved_Artwork_Attached__c} == 0) { alert('Approved Artwork has not been uploaded'); } else { window.location.href ='/apex/Testing?quoteId={!Quote__c.Id}&setDefaultValues=true'; }
Above in IF condition you are using directly
ie.
complete code
try with this..