I have a couple of customers using sign up forms with dates for birthday and wedding anniversary.
The default on the form is 1st Jan 2012.
Is there a way of tweaking the code so a value is not initially shown, eg. a blank or a " - ".
This is because some people might not want to complete this fields and in the case of wedding anniversary not everyone has one!
Hi Julian, the easiest way to show a blank option by default is to add...
<option value="0" selected> </option>
... to each list of options (ie. day/month/year). When the form is submitted, a blank date value will be submitted if this part of the form isn't filled in.
Note that with year, the current year (2012) already has the selected attribute added, so you'll need to remove this. Let us know how you go :D
That's great thanks Ros,. Got it working!
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