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

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

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