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";
}


rest api
1 |3000

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 |3000

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys