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?
Solved! Go to Solution.
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)
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.
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)
Oh yeah haha!!
Thanks a lot. It worked. You are right I am checkin on the this.approval .
Thanks
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
202 | |
183 | |
70 | |
43 | |
34 |
User | Count |
---|---|
339 | |
267 | |
116 | |
66 | |
66 |