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 / add new line in string
Power Apps
Unanswered

add new line in string

(2) ShareShare
ReportReport
Posted on by

Hi

I want to add new line sting which are displaying on label in power app.

In below code I am using char(10) but it is not working.

 

Concatenate("Hello ",lbl_approvervalidationlogic.Text,   ", "   ,Char(10) , "You have been selected as an approver")

 

Please note , using this code  to assign value in variable and label in canvas app.

 

Regards,

Lalit Kadam

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Anonymous ,

    That should work as Text - you can also try Char(13), but I have tested as below

    LabelTestBreak.png

    Also if you are using this ultimately in an email body, try <br> instead. If you use Office365Outlook.SendEmailV2, it will automatically pick up and render the HTML line break.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

    Hi @Anonymous :

    Do you want to split a string into two lines?

    I thought of a convenient method, that is to use the HTML Text control.We can use the <br> tag in the HTML Text control to achieve line breaks.

    I've made a test for your reference:

    1\Add a Html Text control:

    HtmlText:

     

    "Hello "&lbl_approvervalidationlogic.Text & ",<br>" & "You have been selected as an approver"

     

    1.JPG

    Best Regards,

    Bof

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Thanks @v-bofeng-msft ,

    That is pretty much what I said.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @Anonymous ,

    I am following up this post to see if it can be closed if you obtained the result you were looking for.

    Please click Accept as solution if my post helped you solve your issue as this will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • skydivertak Profile Picture
    64 on at

    I have found that if you target both browser and mobile, it seems that you need both Char(10) & "<br>" together.  The browser is ignoring the Char(10) and mobile (at least iOS) ignores the "<br>". I don't have Android or Windows PowerApps application.

  • Juanma Profile Picture
    on at

    Concatenate("Hello ",lbl_approvervalidationlogic.Text,   ", "   ,Char(13) , "You have been selected as an approver")

    is functional on a label too

  • AsaadBLK Profile Picture
    2 on at

    Thanks

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard