I am trying to control the visibility of a field in Visual force page based on record type selected while creating the record using below line.
<apex:inputField value="{!obj.RequestType__c}" rendered="{!cr.recordType.Name == 'Organisation'}">
Scenario : I have created a 'New' button for a custom object which is using this VF page. The record has 2 different record types and based on the different record type selected user should be able to see different fields.
Suppose, I have two record type 1) Insert and 2) Update ...here field A which appears on Insert case , should not come up if Update record type is selected in the VF page and vice versa
The page is saved without error but field is coming off every time irrespective of record type selected. Kindly let me know if there is any syntax error.