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 / Concat with new line
Power Apps
Unanswered

Concat with new line

(0) ShareShare
ReportReport
Posted on by 5,836 Moderator

I would like to know if it's possible to add a line return to a concatenate string.

 

I have this in the Text property of a label:

 

ConcatFormula.png

 

It returns this:

ConcatResults.png

 

I would like it to return like this, but only if it will keep that formatting when patched to a SharePoint multi-line (Rich Text) field:

 

European Union, Austria, AT

European Union, Belgium, BE

European Union, Bulgaria, BG

Categories:
I have the same question (0)
  • BitLord69 Profile Picture
    914 on at

    Hi,

     

    Add a "& Char(13)" at the end of the line. It adds a new line character to your string.

     

    Good luck!

  • mdevaney Profile Picture
    29,989 Moderator on at

    @JR-BejeweledOne 

    To add a line return you can use either of these:

    Char(10)
    Char(13)

     

    The HTML version of this for Rich Text would be

    <br>

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Sorry for the 'Noob' question, can you show me where in that line I would add it?

     

    I am sure I will mess it up about a dozen times if I try myself.

     

    Thanks

  • mdevaney Profile Picture
    29,989 Moderator on at

    @JR-BejeweledOne 
    Yes, but can you supply the current code in Text format please?  I don't want to retype it from your image.  I'm too lazy for that lol.

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I had to laugh because that's the exact reason I did a screen shot, although I suppose I 'could have' copied and pasted.  I think it's a little easier to read when it's got the colors, and I am FAR to lazy for that.

     

    Left( Concat( Filter(Markets, !IsBlank(Region) && !IsBlank(Country) && !IsBlank(CountryCode)), Region & ", " & Country & ", " & CountryCode & "; " ), Len(Concat(Markets, Region & ", " & Country & ", " & CountryCode & "; ")) - 2 )

     

  • mdevaney Profile Picture
    29,989 Moderator on at

    @JR-BejeweledOne 

    Here's where the code should be placed:

     

    Left( Concat( Filter(Markets, !IsBlank(Region) && !IsBlank(Country) && !IsBlank(CountryCode)), Region & ", " & Country & ", " & CountryCode & "; " ), Len(Concat(Markets, Region & ", " & Country & ", " & CountryCode & ";"&Char(13))) - 2 )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Unfortunately that did not work.

  • xanax220 Profile Picture
    20 on at

    Did you ever find the correct way to do this?

  • mmollet Profile Picture
    3,187 on at

    Screenshot 2023-04-12 at 1.24.19 PM.png

     

    Label.Text code: Label15.Text & ", " & Char(10) & TextInput6.Text

  • Cosmic_Kitchen Profile Picture
    105 on at

    The Char(10) and/or Char(13) approach is not working for me right now - Am I doing something wrong?

    Cosmic_Kitchen_0-1681332944237.pngCosmic_Kitchen_1-1681332969921.png

     

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