How do I expose field data to public visualforce page? - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Robert RuelasRobert Ruelas 

How do I expose field data to public visualforce page?

I have a visualforce page that is used to collect the payment but needs to include data from some of the fields from this custom object. 

The visualforce page already references StandardController:
  • I've added fields to visualforce page like I would on any other visualforce page
  • I've added visibility to Guest User profile for the fields
Not sure what I'm missing here but will like to know how to expose field data to a public visualforce page so when customer goes to page can see the details we want to share before they make the payment. 
Best Answer chosen by Robert Ruelas
Robert RuelasRobert Ruelas
I figured it out, the custom URL did not include the record Id. It works now.

Thanks Magulan, your part is right but in my case it needed us to update our URL to include record Id.

 

All Answers

Magulan DuraipandianMagulan Duraipandian
You have to give FLS to the Guest Profile.

Navigate to Develop --> Sites, public access settings.
Give FLS and VF access.
--
Magulan Duraipandian
www.infallibletechie.com
Robert RuelasRobert Ruelas
I've added FLS and VF access to Guest Profile. 

Not sure if there is anything else that I'm missing.
Robert RuelasRobert Ruelas
I figured it out, the custom URL did not include the record Id. It works now.

Thanks Magulan, your part is right but in my case it needed us to update our URL to include record Id.

 
This was selected as the best answer