Received blank submissions in 2 out of 4 forms. Input names and form names are provided

I can’t debug this problem. My site has 4 forms, 2 of them only receive blank submissions although form names and input names are provided.

site name: cdsalus
dev environment: https://dev.cdsalus.com.

the two forms:

Thanks in advance for the help.

hi there,

can you try not having spaces in the form name and see if that helps? You’ll need to redeploy after making changes :slight_smile:

Thank you perry, I will try that.

The problem is I have 4 forms and they all have space in their names. But only two of them are receiving blank submissions.

I checked the outgoing request. The form data is correct too.

Screen Shot 2021-04-08 at 9.46.56 am

I’m having the same problem but with only one form. I don’t want ho hijack this thread but wanted to ask:

@doodanroo how did you check the POST?

Thanks :slight_smile:

I’m having this same issues with a brand new form on a completely different site. Could it be that the problem is on netlify’s end?

No worries @js32. Naturally, I would like to know if you can resolve this too.

If you are using a chromium browser, go to developer mode, and choose network tap. When you submit a Netlify form, you will see a POST request appears.

You can check for headers, body, and response,…

Let me know how you go, please. I’m still struggling with these two forms and might have to remove them or use Netlify functions instead.

Thank you.

hey @doodanroo , do the forms that work also have the action-xhr="{{ .Permalink }}"> tag? i’d be surprised if that works. :thinking:

Hi @perry. Yes, they do have the tags. The “action-xhr” tag is a requirement for all amp-form elements so I can’t remove it.

Here are the two forms that work.

Site: https://cdsalus.com
Dev: https://dev.cdsalus.com

Hi @doodanroo,

thank you. My POST seems to be ok… hm, I don’t want to switch to another service as well… I think I’ve seem my forms working some time in the past, I might check my deploys for it.

Edit: Checked… forms never worked but at least I got the log message:

6:41:58 PM: Processing form - contact
6:41:58 PM: Detected form fields:
6:41:58 PM: - name
6:41:58 PM: - email
6:41:58 PM: - message

(Last working detection on master@22a425c)

Now I only get

11:39:24 AM: WARNING: There are no fields detected for form contact. Check that any existing form fields have name attributes.

Looking at my git I only changed some content and theming.

Hi @js32, maybe use Netlify functions to process your forms instead.

Hm, but this ought to work IMO…
I think functions are above my skill level and as far as I can tell, there‘s definitely another account for some service necessary which I want to avoid for my Client. For my own website it sounds interesting though :slight_smile: maybe you could help me a bit, should we not be able to fix the current issue.

I think this is interesting for a lot of other users, too.

I think I fixed it :slight_smile:

A simple change from
<form name="kontaktformular" method="POST" data-netlify="true" action="/success/" >

to

<form name="kontaktformular" method="POST" action="/success/" netlify>

did the trick for me.

Either this is a bug or the documentation is out of date:

Code an HTML form into any page on your site, add data-netlify="true" or a netlify attribute to the <form> tag, and you can start receiving submissions in your Netlify site admin panel.

It should read:

Code an HTML form into any page on your site, add netlify attribute to the <form> tag, and you can start receiving submissions in your Netlify site admin panel.

Thanks for sharing, @js32 I see you shared your solution in this thread as well. :slight_smile:

@doodanroo , are you still encountering issues?