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 / Display Label based on...
Power Apps
Answered

Display Label based on Status Value

(0) ShareShare
ReportReport
Posted on by 181

Hi All.

 

I have a Gallery where leave requests are submitted via MS form landing in a MS SharePoint List. Within this gallery I have a label displaying the date of the first day of the request so I know when I have to action the request by.

 

When the request arrives, by default its status is set to 'New', this displays the label 'Action Before dd/mm/yy' however when I set the status to 'Requires Approval', this label disappears.

 

I need this label to display when the status is either 'New' or 'Requires Approval'

 

Currently this is the code I'm using on the 'Visible' tab

 

 

If(ThisItem.Status.Value="New", true,false)

 

 

Many thanks

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Angry_Sys_Admin,

     

    You can achieve this by extending the condition with the 'or' operator '||'.

    We can also remove the if statement.

     

    Your visible property would look as follows:

    ThisItem.Status.Value = "New" || ThisItem.Status.Value = "Requires Approval"

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Angry_Sys_Admin Profile Picture
    181 on at

    @LaurensM Thank you that worked

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard