Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4bvxVBVpzl6ED6PWP8tt3Q
Power Apps - Error Handling
Answered

Search function Error

Like (0) ShareShare
ReportReport
Posted on 5 Apr 2025 15:51:47 by 74

I am trying to create a search function to search my choice column. how do i do it? i am using the formula before

  • Verified answer
    RR-05041550-0 Profile Picture
    74 on 06 Apr 2025 at 21:23:16
    Search function Error
    i used this code instead and it worked for me 
     
    Filter( 'Sales Tax Compliance Checklist', IsBlank(TextSearchBox2.Text) || State.Value = TextSearchBox2.Text )
  • Nirav Raval (Akira28) Profile Picture
    150 Super User 2025 Season 1 on 06 Apr 2025 at 20:29:29
    Search function Error
    Hi @RR-05041550-0

    Do try the below code, if it works
     
    Search(
        AddColumns(
            'Sales Tax Compliance Checklist',
            "FavState",
            'State'.Value
        ),
        txtInput.Text,
        "FavState"
    )
    


    If this post solved your issue, clicking 'Does this answer your question' will help others discover the solution and close the topic. If you found it helpful, a Like would be awesome!
     
    Regards,
    Nirav J Raval (Akira28) 🤞
  • Suggested answer
    vipuljain03 Profile Picture
    417 on 06 Apr 2025 at 18:18:34
    Search function Error
    Few checks you can do:
    • Confirm the control is really named txtinput
    • Go to your data pane and make sure the list is properly connected
    • Make sure it’s a Choice field - test with just State.Value in a gallery first
    • Always type quotes directly in Power Apps - don’t copy-paste from Word or web
    Search() only works on text columns - that’s why we use AddColumns() to create a temporary column of text values.
     
    -------------------------
    If this reply helped you, please mark this reply as suggested answer ✔️ and give it a like to help others in the community find the answer too!
    Thanks,
    Vipul
  • MS.Ragavendar Profile Picture
    1,232 on 06 Apr 2025 at 08:35:32
    Search function Error
     
    Can you please help me with the schema of the table which you are trying. 
     
    I will try replicating the things from my end too.
  • RR-05041550-0 Profile Picture
    74 on 05 Apr 2025 at 16:26:17
    Search function Error
     
    STILL GETTING SAME ERROR @MS.Ragavendar​​​​​​​
  • Suggested answer
    MS.Ragavendar Profile Picture
    1,232 on 05 Apr 2025 at 15:57:44
    Search function Error
     
    Try this formula 
     
    Filter(
        AddColumns('Sales Tax Compliance Checklist', "FavState", State.Value),
        StartsWith(FavState, txtinput.Text)
    )
     
     
    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item

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,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,756 Most Valuable Professional

Leaderboard

Featured topics