Copied to clipboard

Flag this post as spam?

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


  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 28, 2010 @ 07:28
    Aaron Powell
    0

    Allowing a form to be resumed

    I'm looking at using Contour to do a new project as there is a requirement for a form to be able to be resumed if the person doesn't have all the details at the current time to complete it.

    Is this built into Contour, or would it be easy to extend and add this feature?

  • Comment author was deleted

    Sep 28, 2010 @ 08:16

    Yes this is a default feature, if you are filling in a multistep form and you don't complete all the steps when you visit the form later you will be able to resume your entry

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 28, 2010 @ 08:27
    Aaron Powell
    0

    How is the user detected as a returning user? Are they given a link to the form with some kind of an identifier?

  • Comment author was deleted

    Sep 28, 2010 @ 08:33

    Have to check the code but think it's just a cookie that is set

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 28, 2010 @ 08:38
    Aaron Powell
    0

    Ok, so it'd have to be the same computer then. When you check the code can you see if there's any way to catch them leaving so I could generate some kind of an ID to allow them to resume from elsewhere?

  • Comment author was deleted

    Sep 28, 2010 @ 09:02

    Yes it's using a cookie,

    RecordService.GetCookieReference(form)

    will return a reference which is build as following:

     "contour_" + pageId.Value.ToString() + "_" + form.Id.ToString();

    Then a cookie is set

    HttpCookie cook = new HttpCookie(formSessionKey);
    cook.Expires = DateTime.Now.AddHours(1);
    cook.Value = formService.Record.Id.ToString();

    If that cookie exists the form is resumed...

    If you want to catch them leaving I guess you'll need to hook into the page unload

     

Please Sign in or register to post replies

Write your reply to:

Draft