Copied to clipboard

Flag this post as spam?

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


  • Sean Dooley 288 posts 527 karma points
    Jun 04, 2019 @ 15:02
    Sean Dooley
    0

    RetrieveFormModel looking for TempData key "umbracoformsform"

    Currently using Umbraco Forms 7.0.5 and we were attempting to populate a form by passing in the Record ID as shown in Views\MacroPartials\InsertUmbracoFormWithTheme.cshtml

    var recordGuid = Guid.Empty;
    
    if (string.IsNullOrEmpty(Request.QueryString["recordId"]) == false)
    {
        Guid.TryParse(Request.QueryString["recordId"], out recordGuid);
    }
    

    Digging deeper we noticed that the method RetrieveFormModel in UmbracoFormsController was looking for a TempData key called "umbracoformsform". When debugging there is no TempData key called "umbracoformsform" but there is a key called "UmbracoForms".

    Noticing this we are unable to populate a form with an existing record.

    Has this been fixed in a subsequent release?

Please Sign in or register to post replies

Write your reply to:

Draft