+ Start a Discussion
Antonio_hotelbedsAntonio_hotelbeds 

Visualforce page depending on record type and profile

Hi,

 

I have to develop different account interface depending on different conditions, for example depending on the record type and the user profile.

 

I am thinking about doing it in the same visualforce page using using rendered sections. Is there any other better way to do it?

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

Depending on your intent, I would presume that using the "rendered" attribute would be an appropriate method. You might also look at Dynamic Visualforce (that new feature that lets you create Visualforce elements in Apex Code). This feature is referenced in the Apex Code Developer's Guide under Reference > Apex Classes > Visualforce Classes > Dynamic Component Methods and Properties.