You need to sign in to do that
Don't have an account?

How to add a Custom Setting in a Custom Button
Hello Community,
I'm not able to add a Custom Setting value to a Custom Button onClick JS.
The error is :
Error: You referenced an unsupported field type called "Lookup" using the following field: Cid__c
When trying to reference :
$Setup.CustomSetting__c.Cid__c
How can i reference a custom setting value inside the js of a onclick Js custom button?
Anyone got any ideas?
If it is a hierarchy custom setting you may be able to use $Setup.<custom setting api name goes here>.<custom setting field name goes here>.
For sure that will not work for a list custom setting. In that case you can query it like any other object.