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

html within datacard from SharePoint announcement app

card.jpg

I have an announcement sharepoint list. When I added the Body field to the datacard, html shows up; it does not show up in SharePoint. How can I remove it?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: html within datacard from SharePoint announcement app

Hi Lp939,

 

Please try to replace the label with a HTML text control.

 

Then set the HTML text control’s text property as ThisItem.ColumnName.

 

Please try it on your side, hope it will work for you.

Best regards,
Mabel Mao

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
10 REPLIES 10
nickduxfield
Level 8

Re: html within datacard from SharePoint announcement app

Swap out the control for a HTML control, as the body column from this content type should be rich text (HTML).

Community Support Team
Community Support Team

Re: html within datacard from SharePoint announcement app

Hi Lp939,

 

Please try to replace the label with a HTML text control.

 

Then set the HTML text control’s text property as ThisItem.ColumnName.

 

Please try it on your side, hope it will work for you.

Best regards,
Mabel Mao

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
CayoSonia
Level: Powered On

Re: html within datacard from SharePoint announcement app

Cannot add an HTML control to a Datacard unless I missing something so for me this question is not solved. Any ideas?

JGOUPIL
Level: Powered On

Re: html within datacard from SharePoint announcement app

Hey CayoSonia,

Have you handled your problem ?

 

I have the same one. People who have filled multi-lines text to SharePoint with carriage returns and things so I have HTML tags in my DataCard.

 

I can create a new DataCard,

- add a HTML Label with text based on the ValueDataCard

- add a Text Label with text based on the KeyDataCard

 

But it is not very easy... Another idea ?

CayoSonia
Level: Powered On

Re: html within datacard from SharePoint announcement app

In the end I had to do something quite clunky and only put the sharepoint titles, submit/modify dates in the form. I then added a comment icon which navigated to a new screen, the new screen had the gallery control and I could add the list comments in an HTML text box. There might be a better way but I am a bit of a noob at this and the HTML markup had to go. Good luck!

DavePotts_BritE
Level: Powered On

Re: html within datacard from SharePoint announcement app

I had the same problem. To display the HTML text I had to:

 

  1. Give up using DataForms/DataCards
  2. Use the HTML Text Label as suggested above
  3. Set the label's HTMLText value to the selected item from the Gallery I had just navigated from, i.e. BrowseGallery1.Selected.Description

Regards, Dave.

Super User
Super User

Re: html within datacard from SharePoint announcement app

@DavePotts_BritE 

When you add your Html column/field to an EditForm, just select the Control type in the Fields definition and make it "Edit Rich Text".  This will give you the proper control to handle the Html.  By default it assigns an Edit Text control...which is just plain text.

Hope this simplifies things for you.  If not and you still have questions, you might want to post back in a new thread - as this one is a bit old.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
DavePotts_BritE
Level: Powered On

Re: html within datacard from SharePoint announcement app

@RandyHayes , thanks for the reply. I tried the "Edit Rich Text" control but I couldn't find a way to remove the tool bar at the top of the control. I need to display the contents as rendered HTML but don't want any edit controls.

 

I.e., how do I get rid of this in the image below?

 

richtextcard.png

Super User
Super User

Re: html within datacard from SharePoint announcement app

@DavePotts_BritE 

You could go with "View Rich Text" - However, this does not get rid of the toolbar on the control, it just disables it.

If you want to get rid of those controls, then really your only choice is to unlock the datacard, delete the Rich Text Edit control, and insert an HtmlText Control.  Then set its HtmlText property to Parent.Default.

That will give you a read-only view of the Html data.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 51 members 4,690 guests
Please welcome our newest community members: