You need to sign in to do that
Don't have an account?
sansha
Rerendering using nested output panel
I have the following code:
<apex:PageBlockSection title="FORM Information">
<apex:inputField id="DMA_SORT_ID" value="{!EU_ProductRequest__c.DMA_SORT__c}">
<apex:actionSupport event="onclick" rerender="DMADetails"/>
</apex:inputField>
</apex:PageBlockSection>
<apex:outputPanel id="DMADetails">
<apex:PageBlockSection id="DMABLOCK" title="DMA" rendered="{!EU_ProductRequest__c.DMA_SORT__c=TRUE}">
<apex:inputField value="{!EU_ProductRequest__c.DMA__c}"/>
<!--
<apex:inputField value="{!EU_ProductRequest__c.DMA__c}"/>
<apex:actionSupport event="onclick" rerender="DMAMarketsField"/>
</apex:inputField>
-->
<apex:inputField value="{!EU_ProductRequest__c.DMA_Markets__c}"/>
<!--
<apex:outputPanel id="DMAMarketsField" rendered="{!EU_ProductRequest__c.DMA__c=TRUE}">
<apex:inputField value="{!EU_ProductRequest__c.DMA_Markets__c}">
</apex:outputPanel>
-->
</apex:PageBlockSection>
<apex:inputField id="DMA_SORT_ID" value="{!EU_ProductRequest__c.DMA_SORT__c}">
<apex:actionSupport event="onclick" rerender="DMADetails"/>
</apex:inputField>
</apex:PageBlockSection>
<apex:outputPanel id="DMADetails">
<apex:PageBlockSection id="DMABLOCK" title="DMA" rendered="{!EU_ProductRequest__c.DMA_SORT__c=TRUE}">
<apex:inputField value="{!EU_ProductRequest__c.DMA__c}"/>
<!--
<apex:inputField value="{!EU_ProductRequest__c.DMA__c}"/>
<apex:actionSupport event="onclick" rerender="DMAMarketsField"/>
</apex:inputField>
-->
<apex:inputField value="{!EU_ProductRequest__c.DMA_Markets__c}"/>
<!--
<apex:outputPanel id="DMAMarketsField" rendered="{!EU_ProductRequest__c.DMA__c=TRUE}">
<apex:inputField value="{!EU_ProductRequest__c.DMA_Markets__c}">
</apex:outputPanel>
-->
</apex:PageBlockSection>
</apex:outputPanel>
I need to make the field DMAMarketsField (in bold above) visible/invisible based on the value chosen for DMA__c.
The commented code gives an error when uncommented.
Please suggest.