Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Angry_Sys_Admin Profile Picture
    181 on at
    Re: Display Label based on Status Value

    @LaurensM Thank you that worked

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on at
    Re: Display Label based on Status Value

    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!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard