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 Apps
Unanswered

Green Checkbox

(0) ShareShare
ReportReport
Posted on by 141

Hello,

 

When I click on a Checkbox I want it to turn green, but it remains red.

 

I have imported my Excel file to Sharepoint. In Excel I have True and False beginning with a Capital letter. When I click in Powerapps on the Checkbox, the item gets updated in my Sharepoint List but with a small letter font true instead of True (maybe that is the problem?)

I used to have my source in Powerapps from Excel but I switched to Sharepoint. In Excel it worked.

 

Probably a small change in code but I can’t figure it out.

 

Thanks,

René

 

Checkbox:

 

CheckboxBackgroundFill If(ThisItem.Seen="True";Green; Red)

Default If(ThisItem.Seen= "False";false;true)

OnCheck Patch(Aircrafts;ThisItem;{Seen:true})

Text ThisItem.Seen

 

Schermafbeelding 2022-01-24 om 16.28.52.pngSchermafbeelding 2022-01-24 om 16.29.40.pngSchermafbeelding 2022-01-24 om 16.37.55.png

 

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

    Hi @Boelebroer ,
    Power Apps is case sensitive to its keywords.

    you can give it a try If(Upper(ThisItem.Seen)="TRUE"; Green; Red) you just wanted the checkbox to change accordingly.

    and for default, Default If(Upper(ThisItem.Seen)= "FALSE";false;true)

  • Verified answer
    Boelebroer Profile Picture
    141 on at

    Thanks, works like a charm

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard