Skip to main content
Community site session details

Community site session details

Session Id : kowZ1FZrMAReH5yqWjTK3v
Power Apps - Building Power Apps
Answered

How can I use an if statment to check if a dropdown selection is a blank string?

Like (0) ShareShare
ReportReport
Posted on 21 Dec 2022 21:41:49 by 28

I am having trouble performing a logical check before executing an error message. I get record to text errors, tried a lookup and got record to record errors.

 

On the surface it seems simple, but writing code in a way acceptable to the app has proven challenging.

 

How do you write an if statement that checks if a dropdown has the "" value in it.

 

Information:

Data source for drop down called: Table2

Dropdown widget named: CropList

 

  • TheRobRush Profile Picture
    11,121 Moderator on 21 Dec 2022 at 23:20:35
    Re: How can I use an if statment to check if a dropdown selection is a blank string?

    yes, .value will be unique to each person's data

  • Verified answer
    GreenerGrower Profile Picture
    28 on 21 Dec 2022 at 22:56:45
    Re: How can I use an if statment to check if a dropdown selection is a blank string?

    This doesn't work because the value of the drop down is coming from a data connection to an existing excel table.

    But I was able to use the logic and find the solution as follows:

    IsBlank(DropDownName.Selected.TableColumnName)

     

    Thanks!

     

     

     

     

  • TheRobRush Profile Picture
    11,121 Moderator on 21 Dec 2022 at 21:46:30
    Re: How can I use an if statment to check if a dropdown selection is a blank string?

     

    For a dropdown titled dropdown1

    IsBlank(Dropdown1.Selected.Value)

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete