function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sujan Kumar ReddySujan Kumar Reddy 

How to access custom settings in our Visualforce Page?

Hi Salesforce Gurus,

 

How to access custom settings? Custom settings data can then be used by formula fields, validation rules, Apex, and the Web services API only?? Can't we access custom settings in our Visualforce page? if we can, How to access it on our visual force page?

Best Answer chosen by Admin (Salesforce Developers) 
gitguygitguy

You can access hierarchial settings inside visualforce using $setup, but list settings are not available.  I'd love to read an explanation why.

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global.htm

All Answers

KapilCKapilC

Hi Sujan,

 

This link will help you out to solve your problem.

 

Custom settings

 

[If you got answer from my post please mark it as solution.]

 

Thanks,

Kapil

gitguygitguy
I think the hope was access to custom settings from pages via merge fields. That would be cool.
gitguygitguy

You can access hierarchial settings inside visualforce using $setup, but list settings are not available.  I'd love to read an explanation why.

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_variables_global.htm

This was selected as the best answer