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
theitdeptrockstheitdeptrocks 

Dynamic VF Page Layout - lots of fields!

Hi all,


I'm working on simplifying a page layout for our Sales and New Business teams.  The page has about 50 total fields on it. The owner wants it so that only the relevent fields are displayed and ultimately there are no blanks.

 

The fields that are relevent depend on the Opportunity's record type and a field named "Service Type."  Both of these have about 12 options (12 RTs and 12 STs).

 

The page itself has the fields split up into three different sections, the first two include the required fields and the third are the optional fields.  When all of the required fields are filled in, he wants a custom button to appear at the top of the page.

 

My thinking so far was to have a "render={!...}" formula for each of these fields to show/hide as applicable.  However, this seems messy and leads to an even bigger mess for determining when/how that custom button will appear at the top of the page.

 

Any ideas?


Thanks in advance!

aballardaballard

Can you may be do something with a repeat over a list of fields, using dynamic (subscripted) references, and an apex controller method to build the list of fields to display?