I don’t think it’s the action attribute because a static path doesn’t work either. Nothing that I try works, all messages come in blank the minute I put in the action attribute, whether it has a variable or a static path.
One more thing you can try is setting the action attribute to a static path as we’ve been discussing AND updating the form name to trigger a new form being created. Let us know if that helps.
that worked… but it’s really unfortunate that I can’t use a variable,since my page is in two languages.
A similar issue is happening to me also, sometime after January 14th the netlify forms just stopped accepting submissions (which the client just recently pointed out). The only way that I have found to resolve this issue so far is to completely remove the action="/classes-free-trial/thank-you" from the form, otherwise the form doesn’t even get recognized during the Netlify build post processing. Here is a sample form that used to work and only works now when removing action (renaming form did not work for me):
<form name="Free Trial Page Form" action="/classes-free-trial/thank-you/" method="POST" data-netlify="true">
<div x-data='{ name: "", subject: "" }'>
<input type="hidden" name="subject" x-bind:value='subject'>
<div class="grid grid-cols-12">
<div class="col-span-12 mt-2">
<label for="name" class="block text-sm font-bold text-gray-700 text-left">
Name*
</label>
<div class="mt-1">
<input type="text" x-model='name' name="name" id="name" x-on:click.away='subject = "Free Trial | " + name' autocomplete="name" required class="p-2 shadow-sm focus:ring-yellow-500 focus:border-yellow-500 block w-full sm:text-sm border-gray-400 border-2">
</div>
</div>
<div class="col-span-12 mt-2">
<label for="email" class="block text-sm font-bold text-gray-700 text-left">
Email*
</label>
<div class="mt-1">
<input type="email" name="email" id="email" autocomplete="email" required class="p-2 shadow-sm focus:ring-yellow-500 focus:border-yellow-500 block w-full sm:text-sm border-gray-400 border-2">
</div>
</div>
<div class="col-span-12 mt-2">
<label for="phone" class="block text-sm font-bold text-gray-700 text-left">
Phone
</label>
<div class="mt-1">
<input type="tel" name="phone" id="phone" autocomplete="phone" class="p-2 shadow-sm focus:ring-yellow-500 focus:border-yellow-500 block w-full sm:text-sm border-gray-400 border-2">
</div>
</div>
<div class="col-span-12 mt-2">
<label for="message" class="block text-sm font-bold text-gray-700 text-left">
Message*
</label>
<div class="mt-1">
<textarea id="message" name="message" rows="7" class="p-2 shadow-sm focus:ring-yellow-500 focus:border-yellow-500 mt-1 block w-full sm:text-sm border-gray-400 border-2" required></textarea>
</div>
</div>
<div class="col-span-12 mt-2">
<button type="submit" class="mt-4 px-12 py-2 border-2 border-gray-700 font-bebas tracking-widest uppercase text-gray-900 hover:border-yellow-400 hover:text-yellow-400 transition ease-in-out duration-150 mx-auto">
Submit
</button>
</div>
</div>
</div>
</form>
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. There are also many other Support Guides for forms - you can find them here: #Netlify-support:support-guides
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!
If you are still having problems, please provide more information such as what you have already tried, and a link to your live form.