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:
  • 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

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard