web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Checking if Text Lable...
Power Apps
Unanswered

Checking if Text Lable is empty

(0) ShareShare
ReportReport
Posted on by 395

I am passing through some data form another screen to populate a text value. I am trying to add an if statement to only update the value if it is empty. 

 

If(IsBlank(PlantTextValue),varPlant)

 

When I write this statement and put a period , nothing pops up like .text or .value. Is this correct for a text label? Or is there a better way to check if it is empty. 

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @lbolin 

     

    can u try this please:

    If(IsBlank(Label1.Text), varPlant, Label1.Text)
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    It should work like this:

    If(IsBlank(PlantText.Text),varPlant)

     

  • Trout19 Profile Picture
    395 on at

    It Errors out

    Screenshot 2024-05-16 085507.png

  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    You should put it in the Defaults property:

    If(IsBlank(Self.Text),varPlant)

    Is there any way, that this field can be prepopulated from somewhere? otherwise you can just put varPlant in the default property.

     

  • Trout19 Profile Picture
    395 on at

    Screenshot 2024-05-16 091645.png

  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    What kind of Control are you using?

     

  • Trout19 Profile Picture
    395 on at

    it was originally created as a choice in a SharePoint list and then I added in a text Lable.

  • Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at

    Okay that's why you're getting this error. it expects another Choice column.

    Is your Variable also inside the Choice column?

     

  • Trout19 Profile Picture
    395 on at

    The variable is set in a onSelect on a Button using the Set() with a variable from a combo box. 

  • Trout19 Profile Picture
    395 on at

    @DBO_DV Is there a way to work around this. 

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard