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 / 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

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard