cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
panand99
Impactful Individual
Impactful Individual

Rich Text Editor - On Display and EditForm

Spoiler
 

Hello, I am trying to use RichText editor in powerapps form. My question is how I can save rich text content in list and how I can display the saved content in powerapps display form.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @panand99,

 

If you want to bind the Rich text editor in your Display form control to the Multiple lines of text type (which has enabled "Use enhanced rich text" option column of your SP list, please check the following GIF image:Test1.gif

 

 

 

When you generated a Display form for your SP list, the Multiple lines of text type column would be decorated as a Label control, you need also remove the Label control from the RichText Data Card control, then add a Rich text editor within it.

 

After that, set the Default property of the Rich text editor control to following formula:

RichText_DataCard1.Default

Note: The RichText_DataCard1 represents the RichText Data Card control which contains the Rich text editor control.

 

Set the DisplayMode property of the Rich text editor control to following formula:

DisplayMode.View

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
dinusc
Microsoft
Microsoft

Hello,

 

In order to display the HTML text from the RTE control in a list (Table or Record) you will need to parse it.You can use something like "Split" function in order to do a very simplistic parsing but you will not be able to do a full HTML parsing within PowerApps. If you can find a web service that does the parsing then you could build a PowerApps custom connector for it.

v-xida-msft
Community Support
Community Support

Hi @panand99,

 

Do you want to save the rich text content from the Rich text editor control of your Edit form into your SP list?

Which type column do you use to store the Rich text content within your SP list? A Sinle line of text type column or Multiple lines of text type column?

Further, could you please share a screenshot of your app's configuration?

 

I agree with @dinusc's thought almost. if you want to save Rich text content from Rich text editor control into a Sinle line of text type column of your SP list, I think you need to parse the Rich text content firstly, because the input format or output format of the Rich text editor control are both HTML data.

 

More details about the Rich text editor control in PowerApps, please check the following article:

Rich text editor

 

As an alternative solution, you could consider take a try to create a Multiple lines of text type column which has enabled "Use enhanced rich text" option within your SP list, then use the Multiple lines of text type column to store the Rich text content from the Rich text editor control. 

 

I assume that you have created above Multiple lines of text type column in your SP list, but when you generated a Edit form for your SP list, the Multiple lines of text type column would be decorated as a TextInput control as below:3.JPG

 

 

So you need to remove the TextInput control from the RichText Data Card control, then add a Rich text editor control within this Data Card control, and bind it to the Multiple lines of text type column in your SP list. Please check the following GIF image for binding Rich text editor to the Multiple lines of text type column in your SP list:Test1.gif

 

 

In addition, if you want to display the saved Rich text content (from your SP list) within yout Display form, you need also take a try to add a Rich text editor control within your Dsiplay form, then bind it to the Multiple lines of text type column in your SP list. 

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Kris,

 

Could you please let me know how to bind richtext editor in display form with multiple lines of text type?

 

 

Hi @panand99,

 

If you want to bind the Rich text editor in your Display form control to the Multiple lines of text type (which has enabled "Use enhanced rich text" option column of your SP list, please check the following GIF image:Test1.gif

 

 

 

When you generated a Display form for your SP list, the Multiple lines of text type column would be decorated as a Label control, you need also remove the Label control from the RichText Data Card control, then add a Rich text editor within it.

 

After that, set the Default property of the Rich text editor control to following formula:

RichText_DataCard1.Default

Note: The RichText_DataCard1 represents the RichText Data Card control which contains the Rich text editor control.

 

Set the DisplayMode property of the Rich text editor control to following formula:

DisplayMode.View

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Duplicated 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,449)