<p>This should be doable. If you have a field in your formatting template with the name <code>formReturnUrl</code>, when checked, it would override the Freeform return URL. You'd likely need to manually hardcode this into your form template code though:</p>

<pre class="lang-html prettyprint-override"><code>&lt;input type="checkbox" name="formReturnUrl" value="{{ siteUrl }}freeform-demo/bootstrap/my-url" /&gt;
</code></pre>

CC BY-SA 4.0
2019-02-26T16:29:24.070Z
2019-02-26T16:29:24.070Z
Solspace
<p>Is it at all possible to set a different Redirect URL on a FreeForm form if a checkbox is checked? To summarise, I have a FreeForm form which contains a checkbox. I would like the submission redirect URL to differ depending on whether or not the checkbox is checked. </p>

<p>Can anyone shed any light on this and offer some advice?</p>

<p>Thanks</p>

<craft3><redirect><plugin-freeform>
Change Freeform redirect URL according to checkbox field
# Change Freeform redirect URL according to checkbox field

(Asked by: username_0 on 2019-02-25)

Is it at all possible to set a different Redirect URL on a FreeForm form if a checkbox is checked? To summarise, I have a FreeForm form which contains a checkbox. I would like the submission redirect URL to differ depending on whether or not the checkbox is checked.

Can anyone shed any light on this and offer some advice?

Thanks

**Tags:** craft3, redirect, plugin-freeform


---

## 1 answers

### Answer by username_1 on 2019-02-26. Score: 1 | Accepted answer

This should be doable. If you have a field in your formatting template with the name formReturnUrl, when checked, it would override the Freeform return URL. You'd likely need to manually hardcode this into your form template code though:


---

