0

I have a custom button that has a custom label: enter image description here

for the custom label of sharepointLink: the value has just like this: url.aspx

But when clicking the custom button, it shows like this: enter image description here

Is it possible to put the custom label in a custom button? If so, is my syntax for the javascript correct or not?

0

2 Answers 2

1

Correct the syntax {&Label.sharepointLink} to {!$Label.sharepointLink}

0
1

That should work fine. I just tested in my org with a custom label called Label with the following Javascript on a custom button:

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

The text I had set up was 'Sample' and when I clicked the custom button on my object it correctly alerted the word Sample.

In your case it seems you are not using correct syntax.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .