web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / div class showing in d...
Power Apps
Answered

div class showing in datacardvalue

(0) ShareShare
ReportReport
Posted on by 15

I'm a complete newbie whose stumbled into PowerApps simply because I wanted to create a custom form for a Sharepoint list.

I have a column in my Sharepoint List called Narrators and it's type is set to Multiple lines of text.

 

When I created the custom form app from this, the datacardvalue for this column displays in the app as <div class="ExternalClass.....

 

I understand that this is the division for the multiple lines of text but how do I get this to display as a multi line text box and not as code? I've set it's mode to Multiline but the code is still showing

Categories:
I have the same question (0)
  • Peakoverload Profile Picture
    15 on at

    Hmm, just found that this only happens for existing records where this column is blank. For new records it display correctly.

  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @Peakoverload ,

     

    That is because the text stored in Multiple lines of text is HTML Text, you need to replace the Text Input in data card by RichTextEditor to display or edit HTML text. Please try this.

    1. unlock the data card

    2. add a RichTextEditor in it, set Default property: Parent.Default

    3. delete the original text input control, modify Update property of data card: RichTextEditor1.HtmlText

    4. modify the Y property of ErrorMessage: RichTextEditor1.Y + RichTextEditor1.Height

    Snipaste_2020-08-12_11-07-44.png

    Hope this helps.

    Sik

  • Peakoverload Profile Picture
    15 on at

    Yay! Perfect, thank you. Really appreciate that as I was pretty stumped there.

  • Community Power Platform Member Profile Picture
    on at

    I've stumped at this issue for a while either. My solution to set the default as "PlainText(Parent.Default)". This formula helps to remove html tags and display only text.

  • infamouslysin Profile Picture
    14 on at

    This is such a beautifully simple solution! Exactly what I was looking for, especially since I do not want rich text and my SharePoint list data ultimately is used in excel worksheets. You are fantastic!

    I successfully used PlainText(Parent.Default) on all of my multi-line boxes and eliminated the HTML coding.

  • Community Power Platform Member Profile Picture
    on at

    😎

  • Community Power Platform Member Profile Picture
    on at

    Its really helpful for me, without any changes in column level we able to show data.

    thank you for posting this answer.

  • grazee73 Profile Picture
    3 on at

    This is very helpful. Ty.

  • Community Power Platform Member Profile Picture
    on at

    Hello I had the same issue. Because it took hours to find the solution, I want to share my experience with you. I connected Power App with a SharePoint list. The aim was to create a form in Power Apps that fill the lines in the SharePoint List. I've got the div class in the value I entered into the Power App field. The solution was quite simple. I had to change the column settings. While I created the column, unfortunately I activated "Use enhanced rich text". After I cleared the option, I just gained the text and no HTML code. 

     

    Tina4_0-1666868133150.png

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks, it worked! Still getting an red x error, but the functionality its ok.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard