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 / Conditional Strikethrough
Power Apps
Unanswered

Conditional Strikethrough

(0) ShareShare
ReportReport
Posted on by 6
I am building a PowerApp that is a database, when an item is cancelled the Status will be set to cancelled, however i want to strikethrough the entry when the status is changed to cancelled. Does anyone know the coding to assist?
Categories:
I have the same question (0)
  • Suggested answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at
     
    Assuming you have a gallery with a Label control in it that displays the entry, you can simply set the Strikethrough property to: ThisItem.Status = "Cancelled" to get the desired outcome:
     
     
    Of course this will also work for labels that displays other fields than the status of the same item.
     
     
    If this reply helped you in any way, please give it a Like 💜 and in case it resolved your issue, please mark it as the Verified Answer ✅.
     
  • CU20031919-0 Profile Picture
    6 on at
    Not quite what I was after, image below should assist. When the status column is Cancelled i wasnt to strikethrough all items of data on that row to easily identify that the row of data is no longer applicable.
    So Ref, Departure date and time, days, title, ver, operator all have strikethrough because The Status has changed to Cancelled
     
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at
     
    Assuming the field you wish to be strike through are displayed using text label controls in a gallery, the suggestion in my previous post should get the desired effect: for each applicable text label control, set it's StrikeThrough property to ThisItem.Status = "Cancelled".
     
    Alternatively you may insert a rectangle control in the gallery, shape it so it looks like a line that is striking the mentioned fields, and set it's Visible property to  ThisItem.Status = "Cancelled". Like this you will have a continuous line instead of just the text being strikken.
     
    In case none of the above works, please share with which controls you have built the view you shared, what you are using as a data source and what the type of the Status column is.
  • Suggested answer
    CU20031919-0 Profile Picture
    6 on at
    Got there in the end with ThisItem.Status.Value = "CANCELLED"

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard