+ Start a Discussion
Huy NguyenHuy Nguyen 

Visual force page with record type

Hi expert,

I have requirement in the subject . I have 2 record type :client and employee . When we choose each record it will display the VF page base on record type with different field. How can i handle it ?
sandeep sankhlasandeep sankhla
Hi Huy,

You can create two blocks in your VF page and render them based on recordtypes

In VF page controller, you can keep 2 boolean varibales and based on the record type you can make them true and false adn show the respective section in page..

Please chek and let me know if you are facing any issue in implementing this..

P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.

Salesforce Certified Developer 
Huy NguyenHuy Nguyen
Hi Sandeep,

Could you please to give me example to demo that requirement ? Thank