cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Help with the label input text property for the if statment

I have a text box in my detailed page of my form which shows the status of the App. (if its approved it shows Approved/if it is rejected, it shows rejected). However, I am working on writing an if statement where if the decision is not made by the manager it should show as "pending"

 

to do that 

 

in the text label field I am writign this if statment on the text property as :

 

If(IsBlank(Label21.text),"Pending",ThisItem.Approval)

 

Label21---is the text input label

Thisitem.Approval- I have a coloumn in my sql table as approval 

 

but it says "name is invalid or the formula has something that is no longer valid".

 

Can someone please guide me on this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Responsive Resident
Responsive Resident

Re: Help with the label input text property for the if statment

If I am understanding this correctly.  This Text() property you have screen shotted is for the object Label21, and PowerApps will not let you have a circular reference within the text() property to the same text() property.  

 

This raises the question on what is it you really want to check is blank.  What value should be populating this field?  I think what you are trying to do is the below:

If(IsBlank(ThisItem.Approval), "Pending", ThisItem.Approval)

 

View solution in original post

4 REPLIES 4
Highlighted
Responsive Resident
Responsive Resident

Re: Help with the label input text property for the if statment

Hi,

 

Can you post a screen shot of the code with the error? There is typically a darker underlining of red under the field/variable/object that is throwing the error.  

Highlighted
Helper V
Helper V

Re: Help with the label input text property for the if statment

yes!!

 

I have attached a picture below

Highlighted
Responsive Resident
Responsive Resident

Re: Help with the label input text property for the if statment

If I am understanding this correctly.  This Text() property you have screen shotted is for the object Label21, and PowerApps will not let you have a circular reference within the text() property to the same text() property.  

 

This raises the question on what is it you really want to check is blank.  What value should be populating this field?  I think what you are trying to do is the below:

If(IsBlank(ThisItem.Approval), "Pending", ThisItem.Approval)

 

View solution in original post

Highlighted
Helper V
Helper V

Re: Help with the label input text property for the if statment

Oh yeah haha!!

Thanks a lot. It worked. You are right I am checkin on the this.approval .

 

Thanks

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,273)