+ Start a Discussion
Paul Foley4Paul Foley4 

Access custom metadata fields in visualforce page

I have a visualforce page I want to be able to retreive and display come custom metadata values.

Ideally I want it so that based on the value that is selected in a picklist from the standard controler, it will display a custom field on the matching custom metadata record.

The use case for this is, that in an RMA record the support person will choose the return location from a picklist. What I want is depending on the location selected the correct address should be displayed on the page (which is being rendered as a PDF)

I dont really want to set up a custom object for the addresses, as they wont change all that often, and I also dont really want to hard code them into the page if possible either.

Any suggestions would be greatly appreciated