cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
panand99
Level 10

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
Community Support Team
Community Support Team

Re: Rich Text Editor - On Display and EditForm

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
Microsoft Employee

Re: Rich Text Editor - On Display and EditForm

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.

Community Support Team
Community Support Team

Re: Rich Text Editor - On Display and EditForm

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.
panand99
Level 10

Re: Rich Text Editor - On Display and EditForm

Hi Kris,

 

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

 

 

Community Support Team
Community Support Team

Re: Rich Text Editor - On Display and EditForm

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

Community Support Team
Community Support Team

Re: Rich Text Editor - On Display and EditForm

 

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (7,101)