You need to sign in to do that
Don't have an account?
3421
Unexpected Token Error message on Custom Button
Hi,
I am trying to add additional logic to an existing button on a Custom Object and I get the error saying Unexpected Token. Here is the code, I am trying to add. Here OrderApi__Receipt__c.OrderApi__Balance__c is the Formula field of type Currency. I did try adding $ before 0, but it still gave the same error.
else if({!OrderApi__Receipt__c.OrderApi__Is_Refund__c}&&{!OrderApi__Receipt__c.OrderApi__Balance__c} =0.00){
alert('Refund processed. DO you wish to continue');
}else if({!OrderApi__Receipt__c.OrderApi__Is_Refund__c}) {
//alert('in refund loop');
Thoughts??
I am trying to add additional logic to an existing button on a Custom Object and I get the error saying Unexpected Token. Here is the code, I am trying to add. Here OrderApi__Receipt__c.OrderApi__Balance__c is the Formula field of type Currency. I did try adding $ before 0, but it still gave the same error.
else if({!OrderApi__Receipt__c.OrderApi__Is_Refund__c}&&{!OrderApi__Receipt__c.OrderApi__Balance__c} =0.00){
alert('Refund processed. DO you wish to continue');
}else if({!OrderApi__Receipt__c.OrderApi__Is_Refund__c}) {
//alert('in refund loop');
Thoughts??
Try use like below.
Thanks
D Naveen Rahul.