cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Itsmesri
Level: Powered On

Richtext to sharepoint list not saving?

I have description field in SharePoint as "Enhanced Text Field" and I added Richtext field in EditForm and set property "DataCard1.Default" . I am able to get the data from SharePoint but not able to save data to SharePoint back.

I am doing "SubmitForm(Form1)" all fields are doing well on saving but not Richtext field.

 

What could be the problem?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Richtext to sharepoint list not saving?

Hi @Itsmesri,

Could you please share a bit more about the Description field that you mentioned? Is it a Multiple lines of text column which enables "Enhanced Text Field" option?

Where do you add the RichTextEditor control within the Edit form? Do you add the RichTextEditor control within the Description Data card in your Edit form?

I have made a test on my side, and don't have the issue that you mentioned. On your side, you should remove/delete the original TextInput control from the Description Data card in your Edit form, instead of it, add the RichTextEditor control. Please check the following GIF screenshot for more details:Test1.gif

Note: The Description field is a Multiple lines of text type column in my SP list, which has been enabled "Enhanced Text Field" option.

I have made a test on my side, the RichTextEditor control works well as below:Test1.gif

 

In additon, you could also consider take a try to submit your form data into your SP list using Patch function instead of SubmitForm function. Please take a try with the following formula within the OnSelect property of the "Submit" button:

Patch(
 'YourSPList',
  Defaults('YourSPList'),
  {
   Column1: DataCardValue1.Text,
   Column2: DataCardValue2.Text,
   ...
   Description: RichTextEditor1.HtmlText,   /* <-- Set value for Description field */
   ...
  }
)

Or

If(
    EditForm1.Mode=FormMode.New,
    Patch(                              /* <-- New record */
       'YourSPList',
         Defaults('YourSPList'),
          {
            Column1: DataCardValue1.Text,
            Column2: DataCardValue2.Text,
            ...
            Description: RichTextEditor1.HtmlText,   /* <-- Set value for Description field */
            ...
         }
     ),
     Patch(              /* <-- Modify existing record */
        'YourSPList',
         BrowseGallery1.Selected,
         {
            Column1: DataCardValue1.Text,
            Column2: DataCardValue2.Text,
            ...
            Description: RichTextEditor1.HtmlText,   /* <-- Set value for Description field */
            ...
         }
    )
)

More details about Patch function, please check the following article:

Patch function

 

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

2 REPLIES 2
Community Support Team
Community Support Team

Re: Richtext to sharepoint list not saving?

Hi @Itsmesri,

Could you please share a bit more about the Description field that you mentioned? Is it a Multiple lines of text column which enables "Enhanced Text Field" option?

Where do you add the RichTextEditor control within the Edit form? Do you add the RichTextEditor control within the Description Data card in your Edit form?

I have made a test on my side, and don't have the issue that you mentioned. On your side, you should remove/delete the original TextInput control from the Description Data card in your Edit form, instead of it, add the RichTextEditor control. Please check the following GIF screenshot for more details:Test1.gif

Note: The Description field is a Multiple lines of text type column in my SP list, which has been enabled "Enhanced Text Field" option.

I have made a test on my side, the RichTextEditor control works well as below:Test1.gif

 

In additon, you could also consider take a try to submit your form data into your SP list using Patch function instead of SubmitForm function. Please take a try with the following formula within the OnSelect property of the "Submit" button:

Patch(
 'YourSPList',
  Defaults('YourSPList'),
  {
   Column1: DataCardValue1.Text,
   Column2: DataCardValue2.Text,
   ...
   Description: RichTextEditor1.HtmlText,   /* <-- Set value for Description field */
   ...
  }
)

Or

If(
    EditForm1.Mode=FormMode.New,
    Patch(                              /* <-- New record */
       'YourSPList',
         Defaults('YourSPList'),
          {
            Column1: DataCardValue1.Text,
            Column2: DataCardValue2.Text,
            ...
            Description: RichTextEditor1.HtmlText,   /* <-- Set value for Description field */
            ...
         }
     ),
     Patch(              /* <-- Modify existing record */
        'YourSPList',
         BrowseGallery1.Selected,
         {
            Column1: DataCardValue1.Text,
            Column2: DataCardValue2.Text,
            ...
            Description: RichTextEditor1.HtmlText,   /* <-- Set value for Description field */
            ...
         }
    )
)

More details about Patch function, please check the following article:

Patch function

 

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

CindyZ
Level: Powered On

Re: Richtext to sharepoint list not saving?

Thanks so much for your help with this-- Progress! 

I am using this solution in a "Customize with PowerApps" form.   All works just fine except my change does not reflect back on my form. It shows right away in versioning so I  know it is taking the change but unless I refresh my screen, I don't see the change.    Any suggestions?  Is that why you recommend Patch.  

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,542)