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 / If statement based on ...
Power Apps
Answered

If statement based on item value in a gallery, always errors

(0) ShareShare
ReportReport
Posted on by 23

Hi Guys,

 

I have a Gallery showing sharepoint list items .. Fairly standard..

However, for example, I have a table for a title. I want the label to be bold if it equals something.

 

Currently the FX for the label is ThisItem.Title.

 

I try using if(ThisItem.Title =   but it always errors saying you cant do if statements on gallery items..

 

What am i missing?

 

Just want the text to show bold if ThisItem.Title = "test" 

 

But seems impossible?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,399 Most Valuable Professional on at

    Hi @Linksus ,

    I am not sure why the error, but you could have on the FontWeight

    If(
     Self.Text = "Whatever",
     Bold,
     Normal
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard