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.
Solved! Go to Solution.
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:
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
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.
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:
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:
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:
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
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:
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
Duplicated
User | Count |
---|---|
125 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
215 | |
180 | |
139 | |
97 | |
83 |