Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.72 KB

File metadata and controls

48 lines (32 loc) · 1.72 KB
description
Customize Success Redirection to your website after form submission

Custom Redirection

redirect

{% hint style="danger" %} This can be only used if you are using the Default HTML Form without Javascript.

If you are using JavaScript or any other front-end Technology, Please use appropriate redirection method instead. See Javascript Example {% endhint %}

By default, Web3Forms redirects to our website after form submission, However if you have a custom URL on your website if you want to redirect after a successful form redirection, you can use the redirect option. You can set any URL you want. This could be a page on your website or a different website. See the code below. Make sure its an absolute URL with https:// not relative.

Examples

<!-- Default URL -->
<input type="hidden" name="redirect" value="https://web3forms.com/success">

<!-- Custom URL -->
<input type="hidden" name="redirect" value="https://yourwebsite.com/thanks.html">

<!-- Redirect to another website (Requires a Paid Plan) -->
<input type="hidden" name="redirect" value="https://partnerwebsite.com/someaction/">

{% hint style="info" %} Cross domain redirection requires a paid plan. Free users must use same domain for redirection. {% endhint %}

Also, make sure you provide full URL as the value instead of relative URL

<!-- ❌ Wrong. This won't work -->
<input type="hidden" name="redirect" value="/thanks.html">

<!-- ✅ Correct. Full URL with https:// -->
<input type="hidden" name="redirect" value="https://yourwebsite.com/thanks.html">

{% hint style="info" %} The Input type should be hidden and the name should be redirect {% endhint %}