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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Validate ComboBox Text
Power Apps
Unanswered

Validate ComboBox Text

(1) ShareShare
ReportReport
Posted on by 39
Hello,
In my application, I have a combo box that is bound to a SharePoint list. It is required that the user either select one of the records from the list or enter another value manually.
 
The problem I am having is in the validation of this comb box. If the user selects a record, I can test the Selected property for IsBlank, however, if they enter another value manually, the Selected property remains blank, so validation fails. I do not see any property of the combo box that lets me test the actual text for validation.
 
Does any know how to access the actual text value of a combo box so I can validate against it?

Thank you for looking
Kevin
Categories:
  • Anchov Profile Picture
    1,986 on at

    When you enter text into a ComboBox, the input is retrievable through the SearchText property. To validate the input, you can check whether the Selected item is blank or if the SearchText is not empty.

    However, please note that this behavior seems to apply only to classic ComboBoxes. Unfortunately, the newer ComboBox does not appear to retain the SearchText value once you click away from the field.

    Example (populates text box with data validation):

    If(IsBlank(ComboBox1.Selected) && IsBlank(ComboBox1.SearchText), "Error! No Items select or entered", $"Selected: {Coalesce(ComboBox1.SearchText,ComboBox1.Selected.Value)}")

    Example Update Property (to update sharepoint):
    Coalesce({Value: ComboBox1.SearchText},ComboBox1.Selected.Value)

     
  • KevinBod Profile Picture
    39 on at
    Thank you Anchov. The SearchText is what I was looking for.
     
    Although adding the typed value to the data set would not be appropriate for this application, I appreciate you sharing the information.
    Kevin

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard