cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

HTML Text control not recognizing carriage returns

I have a HTML Text control in a form (set to DisplayMode.View) that is pulling it's value from a multi-line text column in a SharePoint list (via a Gallery).  When it displays the value (using PlainText) it does not honor the record's carriage returns (ie multiple lines).

So, when the value in the list looks like:

 

Line one

Line two

Line three

 

The HTML Text control shows it as:

 

Line one Line two Line three

 

Does anyone know of a property or workaround to get it to display properly?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Continued Contributor
Continued Contributor

Re: HTML Text control not recognizing carriage returns

Hi @lumberjacklurch

 

I'm not sure there is an easier way to do this, but you can substitute in a <BR> Tag if you are using an HTML box.

 

Substitute(PlainText(TextInput3.Text),Char(10),"<br/>")

A work around until someone smarter pops in.

 

Thanks,
Nicky

View solution in original post

1 REPLY 1
Highlighted
Continued Contributor
Continued Contributor

Re: HTML Text control not recognizing carriage returns

Hi @lumberjacklurch

 

I'm not sure there is an easier way to do this, but you can substitute in a <BR> Tag if you are using an HTML box.

 

Substitute(PlainText(TextInput3.Text),Char(10),"<br/>")

A work around until someone smarter pops in.

 

Thanks,
Nicky

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,436)