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 / Format Values using HTML
Power Apps
Answered

Format Values using HTML

(0) ShareShare
ReportReport
Posted on by 136

Hello Community,

I have a Gallery in power apps, it has SP list as the Datasource

PrudhviL_0-1703044793734.png
In the Gallery I have Put a HTML text Label which shows information from the SP List 

Set(ShowInfo, LookUp(test, Subject = ThisItem.Subject).Definition);
Set(VarShowPopUp,true)

PrudhviL_3-1703047636333.png

 

PrudhviL_4-1703048218351.png

 


I want to Format the Data in the HTML text Card. as below Example

PrudhviL_2-1703044973080.png

 

Can someone please help me how to do it or provide any source where I can find better examples of doing it.

Your help is much appreciated
Thank you! 😊

@ANB @AARON_C 

Categories:
I have the same question (0)
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @PrudhviL 

     

    I think it would be easier if you rearrange your data structure. Have a column for Objective, Level 1, Level 2, Level 3, Level 4. This way you would not need to use a HTML text control.

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

    Hi @PrudhviL ,

     

    I've made a test for your reference:

    Set(ShowInfo,"Definition:Math Objective:Achieve Good Grades Level 1:Addition Level 2:Subtraction Level 3:Multiplication Level 4:Division")

    My formula

    Substitute(Substitute(Substitute(Substitute(Substitute(Substitute("<div style=""text-align: center;"">"&ShowInfo,"Definition:","<b>Definition:</b>"),"Objective:","</div><br><br><b>Objective:</b>"),"Level 1:","<br><br><b>Level 1:</b>"),"Level 2:","<br><b>Level 2:</b>"),"Level 3:","<br><b>Level 3:</b>"),"Level 4:","<br><b>Level 4:</b>")

     

    vbofengmsft_0-1703049773699.png

     

    Best Regards,
    Bof

     

  • PrudhviL Profile Picture
    136 on at

    HI @AARON_C ,
    Thank you So much for your reply. In this case I do not have the right to change the Architecture. So, Need to stick with the Available columns.

  • PrudhviL Profile Picture
    136 on at

    HI @v-bofeng-msft , Thank you for your reply. It worked amazing.

    Is there any possibility that we can Make the Title look like below Image 

    PrudhviL_0-1703095331416.png

    Once again Thank you very Much for your Time and Support. Very Much Appreciated 😊 

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

    Hi @PrudhviL ,

     

    Please try:

    Substitute(Substitute(Substitute(Substitute(Substitute(Substitute("<div style=""text-align: center;"">"&ShowInfo,"Definition:","<b style=""font-size: 24px;"">"),"Objective:","</b></div><br><br><b>Objective:</b>"),"Level 1:","<br><br><b>Level 1:</b>"),"Level 2:","<br><b>Level 2:</b>"),"Level 3:","<br><b>Level 3:</b>"),"Level 4:","<br><b>Level 4:</b>")
    

    vbofengmsft_0-1703120681471.png

     

    Best Regards,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard