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

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
OneThing
Level 8

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
OneThing
Level 8

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (6,681)