Hi, I want to use a custom thank you page for my netlify form but it doesn’t work. I tried a lot of things and still don’t understand the problem. I’m not a programmer so probably there are some errors that i’m not seeing.
What I realized is that the default thank you page URL is right and if you click on it and press enter it takes you to the right page but it shouldn’t load the default page it should load the custom one.
This is the site name https://test-energy-force.netlify.app
How it should look: The Energy Force | Thanks
The form:
<form name="Contacto" action="/thank-you/spanish.html" method="POST" data-netlify="true">
<input type="hidden" name="subject" value="Pedido de contacto de la página web" />
<p class="name-box">
<label><img src="static/imgs/svgs/name.svg"> <input type="text" name="name" placeholder="Nombre"/></label>
</p>
<p class="mail-box">
<label><img src="static/imgs/svgs/mail.svg"> <input type="email" name="email" placeholder="Email"/></label>
</p>
<p class="phone-box">
<label><img src="static/imgs/svgs/phone.svg"> <input type="tel" name="phone" placeholder="Teléfono"/></label>
</p>
<p class="message-box">
<label><img src="static/imgs/svgs/subject.svg"> <textarea name="message" placeholder="Mensaje"></textarea></label>
</p>
<div data-netlify-recaptcha="true" id="captcha"></div>
<p class="button-box">
<button type="submit">Enviar</button>
</p>
</form>
There you can see the path of the custom thank you page in question.
Thank you in advance for your help.
Edited: I removed onSubmit="submit"
from the “form” line