0

I have 2 picklists with action support on my vf page. On the rerender of the first picklist action support, i rerender 2 sections. But on the rerender of the second picklist, I want to rerender one section mandatorily, while the other should be conditionally rerendered. I tried the below code, doesnt work. Please can you let me know what went wrong?

Action support of first picklist:

<apex:actionSupport event="onchange" action="{!ConditionEvaluation}" reRender="SectionA, SectionB" /> 

Action support of second picklist:

<apex:actionSupport event="onchange" action="{!ConditionEvaluation1}" reRender="{!IF(CheckBool==true,'SectionA,SectionB','SectionB')}"/>

The checkBool is a value that i am setting in the controller.

  • Action support of first picklist: <apex:actionSupport event="onchange" action="{!ConditionEvaluation}" reRender="SectionA, SectionB" /> Action support of second picklist: <apex:actionSupport event="onchange" action="{!ConditionEvaluation1}" reRender="{!IF(CheckBool==true,'SectionA,SectionB','SectionB')}"/> – Anna Dec 10 '19 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.