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
srutmsrutm 

pass parameters between visual forcepages

while i am trying to pass parameters between pages the value being passed is visible in the url,how to hide or mask it in the url...can any body help....

Andres AndradeAndres Andrade

You can use javascript;

//PARENT

function callChildWindow(){

   if(myChildWindow==null){
        myChildWindow = window.open("myPageUrl.html",null);
   }
  
  myChildWindow.useParameters(param1, param2 , ..... paramn)

}


//CHILD

 function useParameters(param1, param2 , ..... paramn){
     //user parameters with apex:inputHidden fields
}


If you don't want to use javascript  and want to mask the parameter you can use Crypto Class to encrypt the parameter


Hope this helps.

Andres