web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I make check bo...
Power Apps
Answered

How do I make check box visible only when I click a button

(0) ShareShare
ReportReport
Posted on by 78

Hi, 

 

I am new to power apps. I would like to know how can I make a check box visible or able to check when user clicked the button? 

 

Below is the photo of the check box and button

Thanks in advance for the help..

 

Hooi_0-1628827076274.png

 

Categories:
I have the same question (0)
  • Verified answer
    Irfan Profile Picture
    164 on at

    Hi,

     

    You can achieve using local variables.

     

    Wne your screen loads:

    UpdateContext({varEnableCB: false})

     

    On your button click, with your other commands, paste this as your last command
    UpdateContext({varEnableCB: true})

     

    Finally, on the visible property of your checkbox

    varEnableCB

    Irfan_0-1628827495807.png

     

    This will make sure that when the screenloads, the checkbox is invisible, when the user hits the button, the checkbox becomes visible.

     

    Hope this helps.

     

    Thanks.

     

    Warm Regards,

    Irfan

     

     

  • Verified answer
    indhaa Profile Picture
    on at

    HI,

    On Form load set this variable to false Set(CheckBoxVisible, false)

     

    OnSelect Property of the button you can set a variable   Set(CheckBoxVisible, true)

     

    On the CheckBox Visible Property add this variable   CheckBoxVisisble

     

     

  • Hooi Profile Picture
    78 on at

    Sorry, I am really new to Power Apps. May i know what do you mean by 

     

    When your screen loads:

    UpdateContext({varEnableCB: false})

     

    Where should I actually put the variable? 

     

  • Hooi Profile Picture
    78 on at

    Hi, Sorry I am very new to Power Apps. Thanks for your reply. May I know what is On Form Load located? 

     

     

  • Verified answer
    indhaa Profile Picture
    on at

    Hi

     

    Is this button on the first screen?

     

    If so, on the screen OnVisible property  Set(CheckBoxVisible, false)

     

    Mostly I don't use OnVisible property , so on my navigation icon OnSelect property if I'm navigating to another screen I will add that code.

     

    Hope I'm clear with my response

  • Hooi Profile Picture
    78 on at

    Thanks for that but I still failed on the 3rd one. The variable have error 

     

    On the CheckBox Visible Property add this variable   CheckBoxVisisble

  • Verified answer
    indhaa Profile Picture
    on at

    Check the spelling of the variable. It should be same as how you named it.

     

    Add as below

    CheckBoxVisible

  • Verified answer
    Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @Hooi 

     

    Please check this sample app 

     

    CaptureShow.PNG

     

     

    If you don't know how to upload check this post  Click here 

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard