web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard