Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 7 posts 59 karma points
    Aug 31, 2015 @ 21:45
    Dan
    0

    Editing a Record entered via Umbraco Forms

    How can I edit a record submitted with Umbraco Forms? (Umbraco 7.2.8)

    I have seen teases like this

    https://our.umbraco.org/forum/umbraco-pro/contour/44242-Edit-existing-post

    but I tried adding ?recordGuid=theUniqueIdOfTheRecord but it didn't make a difference.

    I found nothing helpful in the docs.

    There is a UpdateRecord method in Umbraco.Forms.Data.Storage.RecordStorage so it must be doing it somewhere, but calling it in response to the Umbraco.Forms.Data.Storage.RecordStorage.RecordInserting throws an error.

    This one looks real promising. It says "you just need to get hold of the record id and then you can use that to turn the form into edit mode" but then it neglects to say how.

    I feel like there is a simple answer but I have spent hours and still have made no progress. What is the secret to editing records submitted with Umbraco Forms?

  • Dan 7 posts 59 karma points
    Sep 14, 2015 @ 21:53
    Dan
    2

    Turns out all you have to do is pass in the RecordId via query string like ?example.com/pagewithform/?RecordId=2 and the form will be populated with the entered values and saving will edit the records instead of creating a new one.

Please Sign in or register to post replies

Write your reply to:

Draft