cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Skilled Sharer
Skilled Sharer

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

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

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.

Highlighted
Community Support
Community Support

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.
Highlighted
Skilled Sharer
Skilled Sharer

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?

 

 

Highlighted
Community Support
Community Support

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

Highlighted
Community Support
Community Support

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
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,282)