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
john8407john8407 

Carry values from Visualforce page to another Visualforce page

I have a visualforce page to input criteria to search for a product.  It returns the results in the section below the search button.  I want to have a component in the sidebar that I can input the criteria, and it carry the criteria over to the full size visualforce page and run the search.  Is this possible?

Bhawani SharmaBhawani Sharma

You can create a Home Page component and can use a Visualforce page as an iFrame in it.

On submit you can redirect it to New VF Page , which can have the same controller as the previous one.

In this case you don't need to pass the parameter , because as the controller will be same for both the page , so controller state will be maintained.