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, 8 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, 8 years ago

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

<form action="" method="post" onsubmit="MM_validateForm('somenumbers','','RisEmail','FirstName1','','R');return document.MM_returnValue">
        <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" />

Mathew Mathew, 8 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:
We're also on Facebook:

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free