Ads

Sunday, 26 May 2013

Dispaly particular field based on the selection of the particular field?

<apex:page standardController="Book__c">
<apex:form >
    <apex:pageBlock >
        <apex:pageBlockTable id="mytable" value="{!Book__c}" var="item">
  <apex:column headerValue="Delivery">
    <apex:actionRegion >        
      <apex:inputField value="{!item.City__c}">
        <apex:actionSupport event="onchange" reRender="mytable"/>
      </apex:inputField>
    </apex:actionRegion>
  </apex:column>
  <apex:column headerValue="Delivery Type">
    <apex:inputField rendered="{!item.City__c = 'Chennai'}" value="{!item.Chennai__c}"/>
    <apex:inputField value="{!item.Banglore__c}"/>
  </apex:column>
</apex:pageBlockTable>
    </apex:pageBlock>
</apex:form>
</apex:page>


No comments:

Post a Comment