cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Perumal
Continued Contributor
Continued Contributor

String concatenate with new line

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.

15 REPLIES 15
Meneghino
Community Champion
Community Champion

ch2017
Advocate III
Advocate III

this works like a charm

 

concat(variables('MyTextVar'),uriComponentToString('%0A'))

This seems to not work with the new formated text (which I love by the way!) as it did before.  In a gallery, I'm getting a new line for the first template item, but subsequent textboxes just have a large space where the new line should be.

tacode
Regular Visitor

I can confirm that this works.
I did insert for a new HTML Text box, then added
YourText&"<br>"&NewLineTextHere

I have tried below code and its working for me.

HTML Control
Concatenate("Role1: " , DataCardValue2.Selected.Value,"<br>" ," Role2: ", DataCardValue3.Selected.Value,"<br>" ," Role3: ", DataCardValue4.Selected.Value,"<br>" ," Role4: ", DataCardValue5.Selected.Value)

 

DEVREYES
Frequent Visitor

This is the best solution so far. Thank you so much!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,356)