Submit Form not honoring "required" value

I'm not sure if this is an HTML issue or CampaignMonitor.

I have a simple subscribe form on my website requesting only First Name and email address. I'm noticing that the First Name is not passed through to the First Name field in Campaign Monitor.

I see in Dreamweaver that the First Name field is set to be a required field, but when I look in my manage subscribers list in CM, there is no first name present.

When I do a test adding myself and leave the First Name field blank, it gives me the error that it needs to be filled.

How/why are they getting through with an empty First Name field?

Diana Diana, 7 years ago

Hi Julia,

Is your form hosted somewhere that we can take a look at? If so can you post the URL? We'd need to see the code in order to see what's going on.


~*~~*~~*~~*~
D. Potter
Campaign Monitor
julia, 7 years ago

Hi Diana, thanks for your reply! Here's the code from the form (somenumbers my edit):

<form action="http://mysite.cmail1.com/s/258635/" method="post" onsubmit="MM_validateForm('somenumbers','','RisEmail','FirstName1','','R');return document.MM_returnValue">
      <div>
        <label for="somenumbers">Email Address:</label>
        <input type="text" name="Email" id="somenumbers" />
        <br />
        <br />
        First Name:
        <input type="text" name="FirstName" id="FirstName1" />
        <br />
        <br />
        <input type="hidden" name="cm-f-175706" id="source" value="subscribed on my website" />
        <input type="submit" value="Subscribe" />
      </div>
    </form>

Mathew Mathew, 7 years ago

It looks like you might have changed the names of your fields there, which would be the first thing to check. Also, the required field script is something from Dreamweaver, and without seeing the whole page and script together, it is hard to know what is happening.

If you can contact support and let us know where we can see the page itself, we can take a look for you.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098