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 Apps
Unanswered

Combobox issue

(0) ShareShare
ReportReport
Posted on by 245

Hi,

 

Ive come across an slight issue where I have a DataCard in a form which copies the text from a ComboBox which searches a column in a SharePoint List. What I'm looking to achieve, if possible, is to use the selected item from the combobox or use the searchable text if nothing is found. I can seem to do one or the other but not both.

 

Any ideas?

 

Thanks for your help

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @MiniMe_83 - as I understand it, you want to filter a Gallery based on either a combo box selection or search text?

    The below example assumes your ComboBox is referencing a Choice column.

     

    Filter(
    
     YOUR_DATA,
    
     CountRows(YOUR_COMBO_BOX.SelectedItems) = 0 || YOUR_CHOICE_COLUMN.Value = YOUR_COMBO_BOX.Selected.Value,
    
     IsBlank(YOUR_TEXT_INPUT.Text) || StartsWith( COLUMN_TO_SEARCH, YOUR_TEXT_INPUT.Text )
    
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up.

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @MiniMe_83 ,
    You can use something like below -

    If(IsBlank(ComboboxName.Selected.Value), ComboboxName.SearchText, ComboboxName.Selected.Value)
  • Verified answer
    MiniMe_83 Profile Picture
    245 on at

    Hi NandiniBhagya20, this was my first thought but it doesnt seem to work. Im assuming this is entered into the default of the datacard?

  • MiniMe_83 Profile Picture
    245 on at

    .

  • MiniMe_83 Profile Picture
    245 on at

    Hi Amik,

     

    The column is a simple single text column, not sure if this makes any difference.....

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    HI @MiniMe_83 ,
    Yes, you can put the formula in Default property of DataCard. 
    Make sure IsSearchable property of combobox is set to true.

     

     

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard