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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,962)