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
sundar84sundar84 

Show the VF page fields depends on record types?

Hi Friends

 

I have added the visual force page snippet in  Purchaseorder__c  custom object standard page layout. This object  have 2 record types . Is it possible to differentiate for show the  embedded visualforce page fields depends on the record types?

 

For Ex:-   If Record Type is 'OpenPO'   visual force page fields should be listed with out modification.  Record type is 'InventoryPO' some fields didn't show and change the required field propety for some fields. Please let me know your suggestion..

 

 

Thanks

Sundar

 

 

 

 

 

Ankit AroraAnkit Arora

You can use "rendered" in components, make them true using using controller if record type is 1 and false if record type is 2. Hope you got my point.

 

 

Thanks
Ankit Arora