[SalesForce] Passing parameters via Force.com Site URL

I have a Force.com site (https://mycompany.com/Signup). A VF page called 'CustomerSignup' has been created and configured as the home page of this site which is used to sign up customers.

I want to pass some parameters with this Site URL which I can use in my VF Page to autofill some of the fields on the page

Is it possible for force.com sites? how can I do that?

Best Answer

It is completely possible and follows the same guidelines as any other URL.

Construct URL:

https://mycompany.com/Signup

Add params

https://mycompany.com/Signup?param1&param2&param3

How you construct it and how you consume it all depends on your use case and requirements.

You can use the standard $CurrentPage.parameter on the page to do something or use a customer extension or controller.

Follows all the same criteria as any VF page and has access to the underlying data that you give permissions to for the Guest user. Be Careful here

Related Topic