|
| |
|
|
sventer
Posts: 68 Joined: 1/8/2004 Status: offline
|
requiring acceptance of terms in form - 9/30/2008 20:42:15
Hello All, I've inherited another site that was built with DW; I'll be using expressions. There is a form within a pw protected area of the site used by customers...my client wants a particular field to be required before form submission is allowed. So, I went into form properties and found in the Advanced Form Properties Hidden fields there exists 'required' under the name with the name of the acceptTerms field in the value area. Here's the source code: ========================================== <form method="post" name="main" onSubmit="return checkfm(this);" action="form-parse.asp"> <input type=hidden name="main" value="serverroom"> <input type=hidden name="required" value="name,phone,email,acceptTerms"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top"><a class="blueheader">Name</a></td> <td valign="top"><input name="firstname" type="text" size="26" maxlength="60"></td> </tr> <tr> <td valign="top"><a class="blueheader">Phone</a></td> <td valign="top"><input name="phone" type="text" size="26" maxlength="13"></td> </tr> <tr> <td valign="top"><a class="blueheader">Email</a> </td> <td valign="top"><input name="email" type="text" size="26" maxlength="35"></td> </tr> <tr> <td valign="top"><a class="blueheader">Comments</a></td> <td valign="top"><textarea name="comments" cols="20" rows="15"></textarea></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><input name="acceptTerms" type="checkbox" value="t"> Accept the terms</td> </tr> <tr> <td> </td> </tr> </table> <P align="center"><input type="submit" value="submit"> <input name="reset" type="reset" value="reset"></P> </form></td> ============================================ The form goes through without the fields being completed...where else do I look? Oh, and when I go into the form field properties it does ask me to put something in the value field--nothing has been there and I didn't know what to put...it's simply a checkbox that needs to be checked before submitted. Thanks for any guidance, Sharon
|
|
|
|
ou812
Posts: 1603 Joined: 1/5/2002 From: San Diego Status: offline
|
RE: requiring acceptance of terms in form - 10/1/2008 0:00:39
I would have thought the JS chkform, but since it is a hidden field, maybe the page it is posted to, form-parse.asp
_____________________________
-brian EnterpriseDB: Enterprise-class relational database management system PostgreSQL: The world's most advanced open source database
|
|
|
|
sventer
Posts: 68 Joined: 1/8/2004 Status: offline
|
RE: requiring acceptance of terms in form - 10/1/2008 8:16:26
I believe I recall that it is...I'm not familiar with the ins and out of this...is that a problem? Sharon
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: requiring acceptance of terms in form - 10/1/2008 8:27:36
I'd suggest posting the JavaScript checkfm() so we can look at it.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|