Skip to main content

Notifications

Community site session details

Community site session details

Session Id : dqPL2ymsZdaQz8omLFcUxc
Power Apps - Building Power Apps
Answered

Display part of the text in bold and in color

Like (0) ShareShare
ReportReport
Posted on 6 Sep 2020 18:07:16 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:
  • RoScha Profile Picture
    356 on 06 Sep 2020 at 19:41:15
    Re: Display part of the text in bold and in color

    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

  • Verified answer
    CU-18081211-6 Profile Picture
    9,266 Super User 2025 Season 1 on 06 Sep 2020 at 19:19:38
    Re: Display part of the text in bold and in color

    @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 06 Sep 2020 at 19:09:33
    Re: Display part of the text in bold and in color

    @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

  • CU-18081211-6 Profile Picture
    9,266 Super User 2025 Season 1 on 06 Sep 2020 at 18:57:32
    Re: Display part of the text in bold and in color

    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. 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz โ€“ Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Communityโ€ฆ

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,751 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started