web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating Data Source f...
Power Apps
Answered

Updating Data Source from custom DataCard

(0) ShareShare
ReportReport
Posted on by 14

I want to use a rich text control in a form to update a Sharepoint list.     So I have created custom DataCard and added the rich text field to it.   Works great except the submitform() command does not update the list with the data from the rich text control.   I have set the "data field" property on the data card to the correct list field, but does not seem to update the field.    What is the suggested method for updating a list from a custom datacard using a custom control?

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Power-Tim ,

    Could you please share a bit more about your scenario?

    Do you add a Custom data card in your Edit form? Which type column do you use to store the Rich Text value in your SP List?

    Further, do you want to submit the Rich Text value from the custom data card in your Edit form back to your SP List?

     

    Currently, within PowerApps, we could not bind a Custom data card to a field in a data source (e.g. a SP List), and the SubmitForm function could not submit custom data card value.

     

    Based on the needs that you mentioned, I think it is not necessary to add additional custom data card in your Edit form to collect data. Instead, you could enable the corresponding List field in your Edit form, then the corresponding data card would be generated within your Edit form.

    After that, you could consider change the Original Text Input box under the List field data card into a Rich Text control as below:

    Convert original Text box to Rich Text BoxConvert original Text box to Rich Text Box

     

    2.JPG

    then you could type your text within the Rich Text control, then press Submit button, the Rich text value would be saved to your SP List using SubitForm function.

     

    If you just want to add a custom data card in your Edit form, and want to save the Rich Text value within this custom data card back to your SP list, I think the Patch function could achieve your needs. Please take a try with the following workaround:

    Set the OnSelect property of the "Submit" button to following:

    Set(EnteredRichText, RichTextEditor1.HtmlText);
    SubmitForm(EditForm1)

    Set the OnSuccess property of the Edit form to following:

    Patch(
     'YourSPList',
     EditForm1.LastSubmit,
     {
     ListTextField: EnteredRichText /* <-- Update the Rich Text value back to Text field in your SP List */
     }
    )

    or

    Patch(
     'YourSPList',
     LookUp('YourSPList', ID = EditForm1.LastSubmit.ID),
     {
     ListTextField: EnteredRichText
     }
    )

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Power-Tim Profile Picture
    14 on at

    You first option worked fine.   I did not know I could edit the field type.   Thanks

  • v-xida-msft Profile Picture
    on at

    Hi @Power-Tim ,

    Have you solved your problem?

     

    If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread as Solved.

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard