Sainath Pinninti
Sainath Pinninti

Reputation: 13

How to pass url parameters without showing them to the end user in Salesforce?

I want to pass a url parameter in salesforce, but it shouldn't be visible to the end user in the url. Is it possible? Please suggest if there are any other alternatives? Thanks in advance.

In my scenario, I am dealing with 2 pages with individual controllers. In one of the page I am dealing with apex tabs. So I want to get the current tab name. I found the solution for this as passing it into to the url.

Upvotes: 1

Views: 5522

Answers (1)

Will Cobbett
Will Cobbett

Reputation: 46

You don't have to pass parameters between pages using the URL, you can do this using form parameters which will "hide" the values from the user (nothing displayed in the URL) like this:

<apex:param name="contIdParam" value="{!cont.id}" assignTo="{!contIdChosen}"/>

This article may be helpful: http://bobbuzzard.blogspot.co.uk/2011/07/passing-parameters-to-apex-method-from.html

Upvotes: 2

Related Questions