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 / Search textinput for g...
Power Apps
Unanswered

Search textinput for gallery

(0) ShareShare
ReportReport
Posted on by

Hello everybody! Hopefully you guys can help fix my code here:

If(!IsBlank(TextInput1.Text),Filter(ChecklistList,'Document Title' in TextInput1.Text))

I have this code set to the items property of a gallery, but it only works when I put the exact name of the checklist in the textinput, I want it to start filtering the gallery as your typing what the document is.

Any suggestions? Thanks!!

 

 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    @Angel5 

     

    StartsWith function instead of the In operator. The StartsWith function returns true if a text value begins with a specified text value, and false otherwise. This way, you can filter the gallery by partial matches of the document title. For example, you can try this code:

    If(
     !IsBlank(TextInput1.Text),
     Filter(
     ChecklistList,
     StartsWith('Document Title', TextInput1.Text)
     )
    )

    This code will filter the ChecklistList by the text entered in TextInput1, and show only the items that have a document title that starts with that text. If TextInput1 is blank, it will show all the items in the ChecklistList.

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Angel5 Profile Picture
    on at

    I have tried this is the past, but no luck:

    Angel5_0-1697221271333.png

    This is an example so you can see that even though it is simple enough, for some reason it doesn't work. As I start typing in "Check-" nothing appears, even when putting in the whole word. Any thoughts?

     

  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Angel5 

     

    I just recreated your use case:

    My collection ChecklistList

    ClearCollect(
     ChecklistList, 
     {'Document Title': "Checklist1"},
     {'Document Title': "Checkalist2"},
     {'Document Title': "Checklbist3"},
     {'Document Title': "Checklicst4"}, 
     {'Document Title': "Checklist5"}
    )

    My Gallery.Items:

    If(
     !IsBlank(TextInput2.Text),
     Filter(
     ChecklistList,
     StartsWith('Document Title', TextInput2.Text)
     ),
     ChecklistList
    )

     

    Check my gif as a result:

    SpongYe_0-1697222289120.gif

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard