cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GGBB
Helper I
Helper I

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

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
Super User
Super User

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)

Where should I enter this ?

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)

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

Sorry, I'm not familiar with the terms

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)

timl
Super User
Super User

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

 

 

v-monli-msft
Community Support
Community Support

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.

@v-monli-msft 

 

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

 

Thanks!

Hardit (Haman)

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,342)