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 / Highligh search result
Power Apps
Answered

Highligh search result

(0) ShareShare
ReportReport
Posted on by 45

Hey there,

I have a Texbox where the user can search in every title of my gallery, now if there is match I want the text in the gallery to be highlighted. I found out on this website that this might not be possible so if that doesnt work can I just highlight the whole thing?

I tried this code in the Fill option of the body but i cant seem to get it working. The first part never goes true. Maybe you have an idea. 

If(TextSearchBox1 in ThisItem.Title;RGBA(10;10;10;20%);RGBA(0;0;0;0)) or

If(TextSearchBox1 in Body1.Text;RGBA(10;10;10;20%);RGBA(0;0;0;0))

Best Regards 

Hauke

Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @HaukeSan 

    According to your description, you want to highlight the item in Gallery if contains the value in the TextInput.

    You can try to use this code :

    If(TextSearchBox1.Text in ThisItem.Title,RGBA(100,140,150,80%),RGBA(0,0,0,0))

     

    vyueyunmsft_0-1701761271177.png

     

     

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you.


    Best Regards,

    Yueyun Zhang

     

  • HaukeSan Profile Picture
    45 on at

    I forgot the .text 😤

    Thanks 🙂 @v-yueyun-msft 

  • HaukeSan Profile Picture
    45 on at

    Hey @v-yueyun-msft 

    Could you maybe help me again?

    I want to now highlight just the text wich is in the textsearchbox not the whole thing.

    I tried something like this 

     

    If(TextSearchBox1.Text in ThisItem.Beschreibung;
    Substitute(ThisItem.Beschreibung;TextSearchBox1.Text;
    Concatenate(
    Text(TextSearchBox1.Text;Color.DarkRed);
    );
    ThisItem.Beschreibung)

     

    but it doesnt seem to work.

    Best Regards

    Hauke Dasenbrock 

  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @HaukeSan 

    Thanks for your quick response !

    You can try to use the HtmlText Control in your Gallery, and you can try to use this code :

    vyueyunmsft_1-1701764712760.png

     

    If(TextInput3.Text in ThisItem.Title , Substitute(ThisItem.Title,TextInput3.Text,"<b><font color=red>"&TextInput3.Text&"</font></b>") ,ThisItem.Title)

     

    vyueyunmsft_0-1701764700307.png

    Best Regards,

    Yueyun Zhang

     

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