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

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

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (42,656)