function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Himanshu Patel 55Himanshu Patel 55 

how to show a section in Visualforce page based on Boolean field

We have a requirement to show a particular section of VF page to only few Users of Community. I am planning to create a Checkbox field and based on this section will appear.  Below is the VF Code and wanted to show section only if Checkbox is true. 
<div class="rc-grid">
          <article class="rc-card rc-card--b " style="align-items:center;">
            <picture class="rc-card__image rc-padding-top--md">
              <img src="{!URLFOR($Resource.HomeAssets,'./assets/images/Icon_eLearning.png')}" height="100px" width="100px" alt="E-learning Icon" />
            <div class="rc-card__body ">
                <h1 class="rc-card__title rc-delta">{!$Label.pRStart}<br class="rc-xs-up" /></h1>
              <p class="rc-margin-bottom--sm--mobile">{!$Label.pRStartDesc} </p>
            <div class="rc-card__footer ">
                <a href="" class="rc-btn rc-btn--one" aria-label="Button">{!$Label.pRStartLogin} </a> <p> or</p> 
                <a href="" class="rc-btn rc-btn--one" aria-label="Button">{!$Label.proRTCreateAccount}</a>

AbhinavAbhinav (Salesforce Developers) 
Hi Himanshu,

I think you have to use rendered attribute .

Please check belo link for reference