Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Validate Modern ComboBox

(1) ShareShare
ReportReport
Posted on by 19

Hi,

Today I encountered an issue regarding a ComboBox validation. This ComboBox is a required value, and I've tried to validate using IsBlank() y/o IsEmpty(), but I only get this to be true when I manually click on it and select and unselect an option. How can I approach this? Thank you.

 

 

Also, if needed, here's my DefaultSelectedItems code:

If(locNewMode, {Value: ""},{Value: LookUp('Customer List', 'Customer ID' = RecordsGallery1.Selected.'Customer ID', Customer Name)})

 I'm using 'locNewMode' to change the DisplayMode's control property.

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Validate Modern ComboBox

    @Tatiana21 -  consider replacing the DefaultSelectedItems property with:

     

    LookUp(
     'Customer List',
     'Customer ID' = Parent.Default
    )
  • Tatiana21 Profile Picture
    19 on at
    Re: Validate Modern ComboBox

    Hi, @Amik 

    Regarding your questions:

     

    1. The data source is SharePoint.

    2. The data type for 'Customer Name' is Single line of text.

    3. In the items property I just have the list 'Customer List'.

     

     

    Thank you.

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Validate Modern ComboBox

    @Tatiana21 - the answer depends on:

     

    1. Your data source (SharePoint, Dataverse, SQL etc)
    2. The data type for the "Customer Name" field (Single Line Text, single-select Choice, LookUp etc)
    3. What you have in the Items property of that ComboBox

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard