I'm trying to create a form that adds a cookie so that someone who has submitted the form can see content on the thank you page to protect the download.

Currently I've got this:

{{ craft.freeform.form('handle').render() }}

{% set formcook = craft.freeform.form('handle') %}
{% if formcook and formcook.submittedSuccessfully %}
   {# Cookie Will go here #}
{% endif %}

This doesn't seem to be working, although I've seen something very similar working on a different project.

Freeforms has very little in their documentation regarding this unless I'm missing something very obvious.

Anyone spot where I've gone wrong?

1 Answer 1


This was a separate issue causing this, the above works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.