News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
JavaScript Error
Tags: rest api
Apr 17, 2020 at 11:39pm   •   1 replies  •  0 likes
Charls Connor

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


1 Answer
answered on Apr 18, 2020 at 8:35am  

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.


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us