New Form Field not registering

I created a form, and then changed the name of a field. Now the form is only submitting the fields from the old form, and not the updated one.

The fields are now called questionID and answer, but this is what I see in the Forms UI

Here’s the relevant JSX

<form name="answers" method="POST" action="/thanks" data-netlify="true">
            <input type="hidden" name="form-name" value="answers" />
                Question date:
                <select name="questionID">
           => (
                      <option value={} key={}>...</option>
              <textarea name="answer"></textarea>

              <button type="submit" >Submit</button>

Welcome to Netlify Community!

Try putting [] after the name attribute on the select tag.

It should look like this:

<select name="questionID[]">

Unfortunately, that didn’t work. I’m still seeing an empty weekOf field and no questionID entry in the form submission. This is the payload data I see in my submission-created function

  weekOf: '',
  answer: 'Donec id elit non mi porta gravida at eget metus. Vestibulum id ligula porta felis euismod semper.',
  ip: '...',
  user_agent: '...,
  referrer: '...'

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. :slight_smile:

1 Like