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 / Put value from checkbo...
Power Apps
Answered

Put value from checkbox in datacard

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a datacard with two checkboxes. I have the default value of the datacard set to Checkbox1_2.Text||Checkbox1_2.Text. This doesn't work because it just takes the text. My first checkbox is works the other is fails. How can I make it so if the first checkbox is selected the datacard says works and if the other is selected it says fails. I also tried putting DataCardValue4.Text = "Works" on the OnCheck property of the checkbox but that didn't work either.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    OnCheck is an action, it is not a property.  If you want your Checkbox to default to some other condition, then set the Default property of the Checkbox control to:  DataCardValue4.Text = "Works"

     

    I hope this is helpful for you.

  • Verified answer
    Alex_Security Profile Picture
    174 on at

    Hi @Anonymous ,

     

    I assume the below If statement won't work then?:

     

    If(Checkbox1_2.Value=true, "Works","fails")

     

    that is how i'd do it 🙂 if this works for you feel free to mark is as a solution!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard