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
raju123raju123 

Navigation With in Same Page

Hi,

 

          We have one vfpage with many Fields. I need to show only few fields at a time. we have next button same page. by clicking on that i need Few more Fields.

 

Best Answer chosen by Admin (Salesforce Developers) 
Abhay AroraAbhay Arora

you need to use different pageblocks with rendered attributes for this

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_pageBlockSection.htm

 

Use action funtion on next button to render next set of fields to make a wizard kind of flow

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm

All Answers

bob_buzzardbob_buzzard

You have a couple of choices for this.

 

(1) Conditionally render parts of the page based on where the user is in the page flow

(2) Use a wizard where the same controller instance is shared across pages

 

I tend to favour the second option as its easier for those coming afterwards to understand.  You can get more information at:

 

http://developer.force.com/cookbook/recipe/creating-a-wizard-with-visualforce-pages

Abhay AroraAbhay Arora

you need to use different pageblocks with rendered attributes for this

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_pageBlockSection.htm

 

Use action funtion on next button to render next set of fields to make a wizard kind of flow

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_actionFunction.htm

This was selected as the best answer