Hii I need to use a custom label in my onClick javascript button.

I am getting an error

Field $Label.Label does not exist. Check spelling.

Though I have already Created the Custom Label

The label I am using is like


and it should display the word

GST out 10%

as an alert .Please guide me how to use a custom label in javascript

  • This should work. – Reshma May 26 '17 at 6:25
  • There is no issue with this code. make sure your are using API name of label. – Himanshu May 26 '17 at 6:26
  • Please, post your label definition screenshot, together with JS button code – kurunve May 26 '17 at 6:27

Use like this :




The alert must work

Snap shot of alert :

enter image description here

  • Hii Partha ,Thank you for the answer .It is working this way – Saswata Das May 26 '17 at 10:23
  • Saswata Das - welcome .. happy to help u :) :) – Partha Sarathi Mandal May 26 '17 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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