Success Message Form multilingual


I have a site built with nextJs, and it’s multilingual (english and french).
In my code I use router.locale condition to show the form.

So for the success message

I added the condition in the form tag to :
action={router.locale === “fr” ? “/fr/successPage” : “/successPage”}

I also tried doing two forms with two different actions :slight_smile:

router.locale === "fr" ?
<form action="/fr/sucessPage"> </form>
<form action="/sucessPage"> </form>


In both cases it didn’t work.

Thanks for the help and support.

Hiya, sorry you are having trouble getting your forms to work.

This Support Guide is the first port of call to debug any forms issues. Please start here and work through these resources!

We also recommend trying to search the forums or look at topics tagged Netlify forms if you haven’t already - it’s likely your question was already asked by someone else! This thread, for example, looks related to multilingual forms and would be a good place for you to start.

If you are still having problems, please provide a link to your live form, the form name as it appears in your UI, etc. :slight_smile: