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)....
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é
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
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é
is working on a reply...