Copied to clipboard

Flag this post as spam?

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


  • René 327 posts 852 karma points
    Feb 11, 2016 @ 23:16
    René
    0

    Set cookie after submit

    Hi Our

    I need to set a cookie after submit on a regular form created in Umbraco Forms.

    I use umbraco forms in umbraco 7.3

    I have searched around but not getting closer to create a custom workflow "Set cookie after submit"

    I have been trying this http://www.nibble.be/?p=81 but i cant get it to work, and is a quiet old post for contour,.

    Any suggestions?

    René

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 12, 2016 @ 05:59
    Jan Skovgaard
    0

    Hi René

    Just wondering if this is a possible scenario for you...how about setting the cookie using javascript? You should be able to hook into the "submit" event when one click the submit button of the form and then set the cookie on submit maybe? Or does it need to be after the submit? (If the form has invalid fields and you check for those I think submit should be safe since it won't be submitted before the form is valid)....

    Just a thought...:)

    /Jan

  • René 327 posts 852 karma points
    Feb 12, 2016 @ 06:29
    René
    0

    Hi Jan

    After i have been sleeping on this, i have decided to use the javascript approach.

    I will use the thank "you text" to set the cookie.

    René

Please Sign in or register to post replies

Write your reply to:

Draft