Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Add Paragraphs to a multiline text box in a form when emailing

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have the below code in the body of an email (OnSuccess of a form), 1st Approver Comments and 2nd Approver Comments are a multiline text box that currently comes through in the email in one line rather than in paragraphs as the user has filled it out, I believe I need to use CHAR 10 or CHAR 13 for this but can you advise where I need to add that in please? 

 

 

<b>1st Stage Comments: </b>" & EditForm_1.LastSubmit.'1st Approver Comments'&"<br>
<b>2nd Stage Comments: </b>" & 	EditForm_1.LastSubmit.'2nd Approver Comments'&"<br><br>

 

 

Thanks in advance

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: Add Paragraphs to a multiline text box in a form when emailing

    @Dave-ITMan ,

    That is not really evident from your initial post, but glad you solved it

  • Verified answer
    Dave-ITMan Profile Picture
    on at
    Re: Add Paragraphs to a multiline text box in a form when emailing

    Hi,

     

    I've worked this out using the below code if anyone else has this issue in future

     

    <b>1st Stage Comments: </b>" & Substitute(EditForm_1.LastSubmit.'1st Approver Comments', Char(10), "<br>") &"<br>
    <b>2nd Stage Comments: </b>" & 	Substitute(EditForm_1.LastSubmit.'2nd Approver Comments', Char(10), "<br>") &"<br><br>
  • Dave-ITMan Profile Picture
    on at
    Re: Add Paragraphs to a multiline text box in a form when emailing

    Hi @WarrenBelz ,

     

    Yes, that's what i'm using but it's putting all the text on one line e.g. test description of change line 3 and it should be:

     

    test description of change

     

    line 3

     

    Regards

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: Add Paragraphs to a multiline text box in a form when emailing

    Hi @Dave-ITMan ,

    If you use Office365Outlook.SendEmailV2, you code will resolve as you expect.

     

    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.

    Visit my blog Practical Power Apps

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard