cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sr12
Helper III
Helper III

Custom text when field is blank

Hello everyone,

 

I would like to display "Pending Approval" in PowerApps when the status column in SharePoint is empty. How can I do that?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
PG_WorXz10
Community Champion
Community Champion

Hi @sr12,

 

In case of filled values you have mention else part in the if.

May be something like below.

 

1. If you want it in gallery 

Label property Text : If(IsBlank(Thisitem.Status),"Pending Approval",Thisitem.Status)


2. If the you want it in label 

Label property Text : If(IsBlank(DataSource.StatusColumn),"Pending Approval",Thisitem.Status)

 

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.

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

3 REPLIES 3
PG_WorXz10
Community Champion
Community Champion

Hi @sr12 ,

 

 

Please see below 

 

1. If you want it in gallery 

Label property Text : If(IsBlank(Thisitem.Status),"Pending Approval")


2. If the you want it in label 

Label property Text : If(IsBlank(DataSource.StatusColumn),"Pending Approval")

 

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.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

@PG_WorXz10 ,

Thank you for your reply, but now the filled values in the SharePoint are appearing blank in the app when i used your code.

PG_WorXz10
Community Champion
Community Champion

Hi @sr12,

 

In case of filled values you have mention else part in the if.

May be something like below.

 

1. If you want it in gallery 

Label property Text : If(IsBlank(Thisitem.Status),"Pending Approval",Thisitem.Status)


2. If the you want it in label 

Label property Text : If(IsBlank(DataSource.StatusColumn),"Pending Approval",Thisitem.Status)

 

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.

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,429)