You need to sign in to do that
Don't have an account?
Vj@88
Unexpected Identifier when running a Javascript button
I created a custom detail page button that executes the following Javascipt
When I click the button its giving me the error 'Unexpected Identifier'
I am new to Java script. Can anyone help me on this?
if({!Quote.Approval_Validation__c} == "") { window.open('/apex/Quotesubmit?id={!Quote.Id}'} } else { alert ("You can submit for Approval. Please check the Approval Validation on the top pd the Page to meet the requirements for submitting Approval"); }
When I click the button its giving me the error 'Unexpected Identifier'
I am new to Java script. Can anyone help me on this?
Hi
In Java script I believe you could not use controller reference striagthly. I guess 'Quote.Approval_Validation__c' must have been referred to some component on the page.. If so use that componet in Javascript to find the value.
For example
GOO DLUCK-Siddarth
If( "{!Quote.Approval_Validation__c}" == "")
Thanks Anyway!