cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
panand99
Solution Supplier
Solution Supplier

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.

View solution in original post

 

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,132)