Activity Forums Salesforce® Discussions How to rerender PageBlockSection through Visualforce checkbox?

  • jitesh

    Member
    April 29, 2016 at 3:49 pm

    Hi Gourav, you can do this :-
    1) With the help of either of action function.
    2) With the help of action support.

  • Parul

    Member
    September 18, 2018 at 6:29 am

    Try this code snippet and change according to you:

    <apex:pageBlockSection title="Select Countries">
    <apex:inputCheckbox value="{!reUSA}" label="USA"><apex:actionSupport event="onchange" reRender="USASectionOuter" id="Us"/></apex:inputCheckbox>
    </apex:pageBlockSection>

    <apex:outputPanel id="USASectionOuter">
    <apex:outputPanel id="USASection" rendered="{!reUSA}"> <apex:inputField value="{!abc__c.myfield__c}" /></apex:outputPanel>
    </apex:outputPanel>

     

    Thanks.

  • Avnish Yadav

    Member
    September 18, 2018 at 7:28 am

    Hello,

    I recommend you to use <apex:actionFunction> or Rerender feature of visualforce.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos