Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Here i have an issue with custom button javascript that gives the following Error.

enter image description here

in the java script i just printed the custom label.

ex.alert('{!$Label.lbltask}');

So what can i do to remove this kind of error and what is the root cause of this particular issue?

share|improve this question

1 Answer 1

https://help.salesforce.com/HTViewHelpDoc?id=packaging_protected_components.htm&language=en_US

As mentioned in above link and as per error you can't reference protected component in subscriber instance. Try with other labels or may be clone and make your label and reference in script

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.