Copied to clipboard

Flag this post as spam?

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


  • Christian Palm 276 posts 271 karma points
    Oct 18, 2010 @ 10:54
    Christian Palm
    0

    How to turn off - resume form feature

    Hi

    Some-times when going to a form, the Contour fills out the form with the last entered data.

    How can I turn-off this feature?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 18, 2010 @ 12:18
    Tim Geyssens
    0

    Hi Christian,

    Currently it isn't a feature you can simply turn off. But you should be able to do so with some custom code, when a form is partially submitted a cookie will be stored and if you remove that cookie ...

  • Christian Palm 276 posts 271 karma points
    Oct 18, 2010 @ 12:52
    Christian Palm
    0

    I use this on the workflow "When the form has been submitted"

    public override WorkflowExecutionStatus Execute(Record record, RecordEventArgs e)
    {
      Form form = e.Form;
    RecordService.ClearCookies(form);
    }

    But it do not work

  • Christian Palm 276 posts 271 karma points
    Oct 18, 2010 @ 13:07
    Christian Palm
    0

    On every Page_Load I try to clear the cookies but it still not works

    protected void Page_Load(object sender, EventArgs e)
    {
    string contourFormGuid = Upac.Core.UpacContext.Current.Node.GetPropertyValue("contourForm");
    FormStorage formStorage = new FormStorage();
    Form form = formStorage.GetForm(new Guid(contourFormGuid));
    RecordService.ClearCookies(form);
    }
  • Christian Palm 276 posts 271 karma points
    Oct 18, 2010 @ 14:36
    Christian Palm
    0

    I could clear the cookie before the page with the form is shown.

    1. Show a normal page (clear the cookie on every request)
    2. Show a page with a form (now the fields are cleared)

    It's a workaround but it works.

    For a future release it would be nice for possibilities to turn the feature off via config.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies