+ Start a Discussion
Abc234Abc234 

How to display different picklist values in VF page based on Record Type?

Hi,

 

I need to display selected picklist values that are selected in record type in visualforce, Can anyone help me how to achieve this,

 

For example,

 

I have to record types RT1(Indian citizen),RT2(US citizen) and one picklist filed in my custom object named State__c

 

so I have selected states AP,UP,DELHI like for RT1 record type and new york,new jersey,etc for RT2 record type

 

So my requirement is,

 

if I select RT1 record type in VF Page, state__c picklist should show only related states in india that I already selected for that record type(RT1)

 

If I select RT2 record type in Vf page, state__c picklist should show only related states in US that I already selected for that record type(RT2)

 

(OR) Is there any other way like directly redirecting to pagelayouts in VF page

 

Any helpappericiated 

Thanks & Regards,

Bharath

 

Hengky IlawanHengky Ilawan

Hi,

 

Visualforce supports record types starting from Winter 11

http://developer.force.com/releases/release/Winter11/Visualforce+Support+for+Record+Types

 

Regards,

Hengky