question

Charls Connor avatar image
Charls Connor asked Phong Vu answered

JavaScript Error

Hi

I have created a custom button while i am working my apex project during salesforce training project for vf page using javascript.but its showing error like ....


A problem with the OnClick JavaScript for this button or link was encountered:

missing ; before statement

f({!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";
}


apijavascripterrors
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

·
Phong Vu avatar image
Phong Vu answered

How this is related to RingCentral platform? If it is not related to RingCentral platform at all, I think you should ask from this forum to get better help.

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.