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 / String concatenate wit...
Power Apps
Unanswered

String concatenate with new line

(1) ShareShare
ReportReport
Posted on by 604

I am trying to concatenate set of Text values with new line in between. I can't find way to add new line, tried "\n", which does not works. I am using Concatenate function.

Categories:
I have the same question (0)
  • hpkeong Profile Picture
    2,944 on at

    Hi

     

    Would you consider using html textbox?

    Although html5 is not fully supported (e.g.: Table is OK, but border not supported), most of the html5 syntax can be used in PowerApps.

     

    Screenshot (251).png

  • Perumal Profile Picture
    604 on at

    Thanks for your suggestion.

     

    My case:

    ---------------

    I have a screen with set of TextInput boxes. On button click, I want to send a mail with values entered in the input boxes. In the mail, each value should be on a new line.

  • Verified answer
    hpkeong Profile Picture
    2,944 on at

    Hi

     

    I have a series of Useful Features of PowerApps, and I remember it is No. 12, explain about how to use:

    - Collection + Concatenate + Concate...to email with html format.

     

    Hope it helps.

     

    https://powerusers.microsoft.com/t5/PowerApps-Forum/Useful-Features-of-PowerApps-12-Email-amp-Concat/m-p/4554#M2125

     

    The results from my Shopping Apps is sent to out with results as follow (this is actual results).

     

    Actual email receivedActual email received

     

    Hope this really helps.

    (I spent weeks on this and wish it is what you want as no guidance in LEARN Tutorial)

  • Perumal Profile Picture
    604 on at

    Okay, I can understand there is no direct way to a add concatenate new line with strings, we need to use a hidden HTML text control. 

     

    Thanks for your solution.

  • davidni Profile Picture
    on at

    Hi Perumal,

     

    You can add a new line by using Ctrl+Enter in the formula bar, and new lines are perfectly valid withing quoted strings. Type the following formula for example:

    "Hello" & "

    " & "world"

     

    Notice how there is a line break within the quotes.

  • Perumal Profile Picture
    604 on at

    Thanks @davidni, I will try it.

  • rgruian Profile Picture
    on at

    Even though this post accepted a solution, for the record please note that you can append newline (CR) characters to any string.

     

        "new" & Char(13) & "line"

     

    or:

       

        "new" & "

        " & "line"

     

    If you need CRLF sequences instead, please use Char(13) & Char(10).

     

     

  • michowl Profile Picture
    Microsoft Employee on at

    I'm finding that when I use the newline in the text box

     

    "My title

    Has 2 lines"

     

    It looks correct initially. But when I preview the app or reopen the app, the line break remains in the fx field, but visually, the linebreak has been removed entirely.

     

    Visual representation:

    My titleHas 2 lines

  • Mordikus Profile Picture
    12 on at

    Hello hpkeong,

     

    which app are you using in this screenshot ?

     

    Thanks and have a nice day !

     

    Screenshot (251).png

  • Meneghino Profile Picture
    6,949 on at

    Hi, you may be interested in voting up this idea:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/Add-optional-parameter-for-separator-string-to-Concat-and/idi-p/42394

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard