I am trying to render 2 additional field levels in Visualforce using rerender function. Is this possible? I have the first level working, but unable to get the last level working properly. Any advice is appreciated.
Requirements:
If OTT_Managed__c = True/Checked render level 1 field "Additional_Targeting__c"
If Additional Targeting__c = "Some Value", render level 2 field called "Desired_Audience__c"
Visualforce:
<apex:pageBlockSection >
<apex:pageblockSectionItem >
<apex:actionRegion >
<apex:inputField value="{!Opp.OTT_Managed__c}" label="OTT Managed">
<apex:actionSupport event="onchange" action="{!null}" rerender="op0"/>
</apex:inputField>
</apex:actionRegion>
</apex:pageblockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockSection id="op0" columns="1" >
<apex:pageblockSectionItem rendered="{!Opp.OTT_Managed__c}">
<apex:outputLabel style="color:red;font-size:12px;font-weight:750">Additional Targeting</apex:outputLabel>
<apex:actionRegion >
<apex:inputField value="{!Opp.Additional_Targeting__c}" style="color:red;" label="Addl Target"/>
<apex:actionSupport event="onchange" action="{!null}" rerender="op1,op3"/>
</apex:actionRegion>
</apex:pageblockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockSection id="op1">
<apex:pageblockSectionItem rendered="{!Opp.Additional_Targeting__c == 'Some Value'}">
<apex:outputLabel style="color:red;font-size:12px;font-weight:750">Desired Audience</apex:outputLabel>
<apex:actionRegion >
<apex:inputField value="{!Opp.DesiredAudience__c}" style="color:red;" label="Desired Audience"/>
</apex:actionRegion>
</apex:pageblockSectionItem>
</apex:pageBlockSection>