cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GGBB
Level: Powered On

Line breack <br> showing

Hi,

I'm new to Power Apps, I managed to do what I needed for now, however I have an issue I can't work out.

My data are in a share point list extacted from an Excel file. I want to display what's in the cell but I have the line breack <br> showing in the app.

How can I get rid of it ?

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Level 10

Re: Line breack <br> showing

Glad it worked!

For your 1st question, you can use Char(13) instead of "". That should add a new line.

For your 2nd question, you can use a nested substitute function. Something like this:

Substitute(Substitute( String, "<br>", Char(13)), " &#58; " , " : ")

Let me know if this works.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

19 REPLIES 19
PowerAddict
Level 10

Re: Line breack <br> showing

Hi, 

 

Try something like this: 

 

SubstituteString, "<br>", "")

 

String is where your content that is displayed in your image will be. 

 

Let me know if this works. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

GGBB
Level: Powered On

Re: Line breack <br> showing

Where should I enter this ?

PowerAddict
Level 10

Re: Line breack <br> showing

Whats the text property of that datacard? In the image, it shows Parent.Default. So what is the default property of that datacard? 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

GGBB
Level: Powered On

Re: Line breack <br> showing

Display Text, that's what you wanted to know ?

Sorry, I'm not familiar with the terms

PowerAddict
Level 10

Re: Line breack <br> showing

No problem, we will work through this. 

 

The image you shared showed the display property of the text box. Like shown below:

Default1.PNG

 

What I want you to share with me is the display property of the databcard. Like shown below: 

Default2.PNG

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

Super User
Super User

Re: Line breack <br> showing

Hi @GGBB 

Another way to do this is to use the rich text control rather than a textbox. You can change this by selecting your form, clicking the edit fields option, and selecting the rich text option.

The rich text control displays <br> tags as a line break, so there won't be any need for you to substitute those tags. 

image.png

 

 

Community Support Team
Community Support Team

Re: Line breack <br> showing

Hi @GGBB ,

 

So it's inside an edit form control. Please select this data card, unlock it, then set the Default property of the textinput control to:

Substitute( ThisItem.'Conseils de prudence', "<br>", " ")

 Capture.JPG

 

12.JPG

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PowerAddict
Level 10

Re: Line breack <br> showing

@v-monli-msft 

 

Just want to make sure that your suggested solution is the same as mine. 

 

Thanks!

Hardit (Haman)

GGBB
Level: Powered On

Re: Line breack <br> showing

Thanks for your help

 

@timlI tried it but it doesn't work

 

@PowerAddict @v-monli-msft 

I don't have the Default property for this datacard (and the others)

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 (5,167)