Click to See Complete Forum and Search --> : Required Fields
pfullbright
03-31-2003, 09:48 PM
I am attempting to have a few required fields on my Registration Form. I have input the code and thought that I had place it in the proper places. I have tried for two days now to figure out why it's not working, without success.
Could you please help me?
Thank you!
Here is the code in question:
http://www.hobbyshopvillage.com/RegistrationForm.html
Nedals
03-31-2003, 11:41 PM
After a brief look at your code....
Near the top of your code you have this but no </form>
<form action="http://hobbyshopvillage.com/cgi-sys/FormMail.cgi" method="POST" target="_blank">
and near the end you have this
<form name="RegistrationForm" action="myformadd" onSubmit="return checkBlanks();">
<INPUT TYPE="SUBMIT" VALUE="Submit Shop">
<INPUT TYPE="RESET" VALUE="Reset">
<P>
</FORM>
You can have two <form...> tags but they must be seperate forms each with thier own </form>; but I think you just want one form, so get rid of the second <form..> tag and recode the first form tag like this.
<form name="RegistrationForm" action="http://hobbyshopvillage.com/cgi-sys/FormMail.cgi" method="POST" target="_blank" onSubmit="return checkBlanks();">
I don't understand the target="_blank" but I assume you do!
Nedals
04-02-2003, 12:41 PM
from pfulbright via PM
Here's a link to my Registration Form.
www.hobbyshopvillage.com/RegistrationForm.html
I used your suggestions, that you e-mailed me before [posted] and it worked. Now I am having a problem with my form sending, once the customer pushes the "OK" button (redirecting customers to my "Thank You" page).
How can redirect them once the required fields are filled in and not before that?Peggy, when responding to a thread, use the 'reply' button at the bottom of the post (not a PM). Others may have the same problem and may be able to solve it by following posts on the forum
In response:..
end of javascript
if (themessage == "You are required to complete the following fields: ") { document.RegistrationForm.submit(); }
else { alert(themessage); return false; }
to --->
if (themessage == "You are required to complete the following fields: ") { return true; }
else { alert(themessage); return false; }
shortly after <body----
<form name="RegistrationForm" action="http://hobbyshopvillage.com/cgi-sys/FormMail.cgi" method="POST">
to --->
<form name="RegistrationForm" action="http://hobbyshopvillage.com/cgi-sys/FormMail.cgi" method="POST" onclick="return verify()">
Near the end
<INPUT TYPE="SUBMIT" VALUE="Submit Shop" onclick="verify();">
to ---> <INPUT TYPE="SUBMIT" VALUE="Submit Shop">
pfullbright
04-02-2003, 12:51 PM
I will try it later - thanks for your help!
pfullbright
04-02-2003, 05:34 PM
Those changes worked, but now there is another issue.
Once I press the "OK" button, to add information in the required field(s), once I click in the 'company' field - it won't let me. It keeps on referring back to the pop-up message regarding the required field. This includes the reset button also.
Help!
Thank you!
Nedals
04-02-2003, 07:50 PM
Interesting effect. :)
I gave you some erroneous code...
<form name="RegistrationForm" action="http://hobbyshopvillage.com/cgi-sys/FormMail.cgi" method="POST" onSubmit="return verify()">
NOT onClick. :o :o
You need to look over your code carefully. I noticed a hanging </select> and </textarea>. There may be others.
pfullbright
04-02-2003, 10:00 PM
That worked like a gem!
Thank you so much for your help! Can't thank you enough! :) :)