Copied to clipboard

Flag this post as spam?

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


  • fino 14 posts 36 karma points
    Oct 30, 2012 @ 22:38
    fino
    0

    RecordGuid in events isn't set before step 3

    Hello

    I'm trying to create a link that will be used to edit at a later time a form by using the form id and the current record id (cookie isn't an option for me as it can be deleted or the user may use another browser/computer).
    I've got something working but I don't understand why the RecordGuid in events is only present when I reach the 3rd step of the form.

    I've created a class extending ApplicationStartupHandler to have all events and to be able to put some breakpoints to debug.

    When I load the page containing the form, the event RecordService.RecordOpened is fired.

    Umbraco.Forms.Core.Services.RecordService)(sender)).Record.Id value is : 00000000-0000-0000-0000-000000000000


    I fill up form's fields and then click the "next" button. The event RecordService.RecordOpened is fired again. (strange that's fired a second time...)

    Umbraco.Forms.Core.Services.RecordService)(sender)).Record.Id value is : 00000000-0000-0000-0000-000000000000

    Next event to be fireed is the RecordService.RecordPartiallySubmitted.

    Umbraco.Forms.Core.Services.RecordService)(sender)).Record.Id value is still at : 00000000-0000-0000-0000-000000000000 (I was thinking that I should here have the right Record.Id's value).


    And then, the step 2 of the form is loaded. I fill up form's fields for this new step and click "next" button. The event RecordService.RecordPartiallySubmitted is fired.

    And now, i've got for the Umbraco.Forms.Core.Services.RecordService)(sender)).Record.Id the value : 7c274bd2-416b-417e-9a69-0bba77c7ac57

    And the step 3 is loaded.

    Is this a normal behavior to have the Record.Id only at step 3 ?

    umbraco 4.9.1 (clean install)
    contour : 1.1.13.2 (with licence)

    fino

Please Sign in or register to post replies

Write your reply to:

Draft