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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / onCheck not working
Power Apps
Answered

onCheck not working

(0) ShareShare
ReportReport
Posted on by 272

I have a checkbox on my form and a multi-line box with the visible property set to false.  I used the onCheck property set to 

BadgeComments_DataCard1.Visible = true

 

When the checkbox is checked, the card containing my multi-line box  does not become visible as set in the formula.  I've tried everything and it still won't work.

 

The checkboxe was initially a toggle switch but I changed it to a checkbox, but I get no errors so I don't think that could have been the issue.

 

Any ideas?

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    You need to use a variable for this functionality. Use the onCheck property to set the variable to true, then put the variable in the Visible property of the multi-line box.

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Checkbox is inside form? Like Yes/No type column? or outside form just normal checkbox.

    If it's outside form just write on your comment data card visible property:

    Checkbox1.Value=true

     

  • theisogunro Profile Picture
    272 on at

    Do I set the variable in the App onStart?

  • theisogunro Profile Picture
    272 on at

    It's a checkbox inside the form.

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    No need - Just put the variable in the Visible property of the control you want to be controlled by the checkbox. Then put the Set(variable, true) in your onCheck property. If it needs to be a toggle, you can put Set(variable, false) in the OnunCheck property. Otherwise you can put the false in another control. You could also put the false in the onVisible of the page to make sure it will be invisible if you navigate back to the page later in a session.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#2
11manish Profile Picture

11manish 192

#3
Valantis Profile Picture

Valantis 128

Last 30 days Overall leaderboard