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 / Form Multiline Edit Co...
Power Apps
Unanswered

Form Multiline Edit Control with Sharepoint Multiple Lines of Text (both kinds)

(0) ShareShare
ReportReport
Posted on by 535 Super User 2024 Season 1

I have a Sharepoint List that is being Added To/Edited by a Form in Power Apps.  I have the two types of Multiple Line columns (Plain Text and Enhanced) in the Sharepoint List for testing purposes.

 

If I pull up the record in the Form, the Plain Multiple Line field displays in the field the way it was entered initially (the 2nd line of text appears below the first line):

zuurg_0-1679070705677.png

When I pull up the Enhanced Multiline field, it shows it using the 2nd line on a new line, but has added html div information to it, but the div surrounds the entire text:

zuurg_1-1679071057240.png

The problem with this is that when I'm trying to send the information in an email as HTML text, it shows up like this (these are both HTML Text controls where the controlname.HtmlText is being populated with the field contents):

zuurg_2-1679071201609.png

So you can see that the line break that was originally entered into the field while editing is just being ignored here.   The line break in the enhanced text DOES get included if I manually move the /div to the end of the first line on the enhanced text, but I don't want people to start manually including HTML in their text body because not everyone understands that.  I'd rather just keep it Plain text:

zuurg_3-1679071389526.png

If I use a regular Text Label to display the contents of the plain text multiline field, it shows properly:

zuurg_4-1679071461867.png

The question I have is this:  Is there a way that I can use a Plain Text Multiple Line SP column type but have my HTML output to an email respect the line breaks as they're entered & displayed in the form's Edit Multiple field?  I've tried to have the HTMLText value to be "<b>" & Label1.Text & "</b>" but that again ignores the line break and puts it all in one bolded line:

zuurg_5-1679071697253.png

I don't need enhanced text as 1) I hate seeing the html in the field contents and 2) I'm deciding which columns' data gets formatted and how it's formatted in the email.  Just need plain text with line breaks respected.

 

 

 

Categories:
I have the same question (0)
  • FishinKmac Profile Picture
    75 on at

    In your app, you need to make sure the controls have the view as rich text , not just view multi line text. that should fix the issue. Also if you are editing, it need to be the edit rich text control. 🙂

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at

    That shows up properly on the html text, the problem is that I don't want people using different sized fonts, etc.  I just want plain text.  Is there a way to disable the controls on the Edit rich text control?

  • FishinKmac Profile Picture
    75 on at

    So I would change the field in the list to plain text and you will most likely have to remove the field and then add it back to your app. This should fix the problem.

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at

    It doesn't fix it, that's what's happening in the example in the initial question.  The Multiline Plain field is plain text.  The text in there looks fine both as you're writing it and when you recall that record (so there must be some sort of behind-the-scenes formatting happening going on).  The problem is that when I try to put the contents of the plain text into an HTML text label, it ignores the line break that's in the plain text and just jams it all together.

     

    Looking at Microsoft's documentation on the use of the RTE, it appears that it IS possible to alter the look of the RTE to remove formatting options, but it kind of looks like that's only possible with model-driven apps in a Solution.  

     

    Has anyone successfully modified theirs for a Canvas app?  Using the RTE looks like it would work, but I only want to allow Bold, Italics, and Underlined text.

  • FishinKmac Profile Picture
    75 on at

    OK i see now. What are you using the HTML text field for? Maybe there is another way to not have to use that?

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at

    It's being used to generate the body of the email that needs to contain all the information from the form.  Everything in the email works fine, with the exception of the multiline data - the line breaks get ignored, even though they show properly in the field itself (using Plain text)

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard