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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Validate ComboBox Text

(1) ShareShare
ReportReport
Posted on by 37
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:
I have the same question (0)
  • Anchov Profile Picture
    1,984 on at
    Validate ComboBox Text

    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
    37 on at
    Validate ComboBox Text
    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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard