You need to sign in to do that
Don't have an account?
TharunKumar
Custom label reference not working on onclick javascript for a button
I have a custom label with value and wanted to reference on onclick javascript for a button.
Here is the code for Onclick Javascript
window.location = '/_ui/core/email/author/EmailAuthor?p3_lkid={!Incident__c.Id}&p3={!Incident__c.Name}&p24={!Incident__c.Requester_email__c}&p6=Requesting further information regarding {!Incident__c.Name}&template_id='{!$Label.Email_Temp_ID_for_Request_Button_on_Incident_Object}''
Throwing error as Unexpected Identifier
Here is the code for Onclick Javascript
window.location = '/_ui/core/email/author/EmailAuthor?p3_lkid={!Incident__c.Id}&p3={!Incident__c.Name}&p24={!Incident__c.Requester_email__c}&p6=Requesting further information regarding {!Incident__c.Name}&template_id='{!$Label.Email_Temp_ID_for_Request_Button_on_Incident_Object}''
Throwing error as Unexpected Identifier