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 / Display part of the te...
Power Apps
Answered

Display part of the text in bold and in color

(0) ShareShare
ReportReport
Posted on by 356

Hello community.
Is it somehow possible to format the text "-- Testfirma --" (= result of the variable "lbJob_scrNeuerKD_1") in bold and in blue within this formula?

 

RoScha_0-1599415592994.png

 

If(lbJob_scrSpeichernErfolgreich.Text="neuKD";"Der neue Kunde " & Char(10) & Char(10) & "-- " & lbJob_scrNeuerKD_1 & " --" & Char(10) & Char(10) & "wurde erfolgreich gespeichert"; If(lbJob_scrSpeichernErfolgreich.Text="neuFZ";"Das neue Fahrzeug von " & Label11_4 & " wurde erfolgreich gespeichert";"???"))

 

Best regards

RoScha

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hello ... you have 2 options to achieve that:

     

    1. Use 3 label controls ( for each text row) and set the Color and FontWeight property of the  "---Testfirma---" label  according to your need;

    2 Use a HtmlText control and on HtmlText property use:

                 "<p style='text-align: center;'>Der neue Kunde</p>
                   <p style='text-align: center;'><strong><span style='color: #0000ff;'>---TestFirma ---</span></strong></p>
                   <p style='text-align: center;'>wurde erfolgreich gespeichert</p>"

                   - please notice that I used quote(') and not  double-quote (") inside Html code.

     

    Personally I prefer the second choice to avoid load memory with 3 controls against 1. 

  • RoScha Profile Picture
    356 on at

    @gabibalaban Oh HTML, another programming language that I don't know.

    Can you still show me how I can get my variable (lbJob_scrNeuerKD_1) into this HTML code because this variable flexibly shows the respective name (here in the example "Testfirma")

     

    Best regards

    RoScha

  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @RoScha, here it is 🙂

     

    "<p style='text-align: center;'>Der neue Kunde</p>
    <p style='text-align: center;'><strong><span style='color: #0000ff;'>"&lbJob_scrNeuerKD_1&"</span></strong></p>
    <p style='text-align: center;'>wurde erfolgreich gespeichert</p>"

  • RoScha Profile Picture
    356 on at

    It's like always ... if you know how it's so easy.

    Perfect. I'm really happy that the problem is solved. 😁
    Thank you so much @gabibalaban 

     

    Best regards
    RoScha

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 742

#2
Valantis Profile Picture

Valantis 474

#3
Haque Profile Picture

Haque 358

Last 30 days Overall leaderboard