ListMailPRO Email Marketing Software Forums
ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: rick2 on September 01, 2004, 01:02:38 am
-
Hi, Is there a way that I can make a new Custom List Field a required field for users to compete when filling out the subscribe form? If so, how do I go about it? Cheers.
-
Unfortunately this feature isn't in the current release. I know, it should be. :oops:
A workaround is to use JavaScript on your signup form, ie:
<form name=frm1 method=post action=http://site.com/mail/signup.php onsubmit="if(!frm1.user1){ alert('You must enter the required data!'); return false; } else { return true; }">
<input type=text name=user1>
<input type=submit value="Subscribe">
</form>
-
<form name=frm1 method=post action=http://www.yourbusinesssuccess.co.uk/mail/signup.php
onsubmit="if(!frm1.user1){ alert('You must enter the required data!'); return false; } else { return true; }">
<input type=hidden name=list value=1>
First Name: <input type=text name=fname size=10><br>
Last Name: <input type=text name=lname size=10><br>
Email: <input type=text name=email><br>
Telephone Number: <input type=text name=user1><br>
<input type=submit value="Subscribe">
</form>
I want to have telephone number and email be mandatory and can't get it using what you recommended with the java script above?
-
Try this:
<form name=frm1 method=post action=http://www.yourbusinesssuccess.co.uk/mail/signup.php
onsubmit="if(!frm1.user1 || !frm1.email){ alert('You must enter the required data!'); return false; } else { return true; }">
-
<form name=frm1 method=post action=http://www.planetearthradio.com/mail/signup.php
onsubmit="if(!frm1.user1 || !frm1.email){ alert('You must enter the required data!'); return false; } else { return true; }"><font face="Verdana"><input type="hidden" name="list" value="17"></font>
<p><font face="Verdana"><font size="2">First
Name: <input type="text" name="fname" size="15"><br>
Last Name: <input type="text" name="lname" size="15"><br>
Email:<input type="text" name="email" size="25"><br>
Country:<select name=user1>
I have still not got this form to work that you suggested. You can still bypass the second required field
I want to have the Country field as a required field
-
This section "if(!frm1.user1" should ensure that the Country field contains data. Did you complete the </select> tag, create a Submit button, and finish the </form>?
Regards
-
Okay, I believe i have found the problem. Change
if(!frm1.user1 || !frm1.email)
to
if(!frm1.user1.value || !frm1.email.value)
Regards