a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

validation: require at least one check box to be, well, checked

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> validation: require at least one check box to be, well, checked
Page: [1]
 
Guest


 
validation: require at least one check box to be, well,... - 11/8/2001 20:54:00   
Hi. I have a simple FP e-mail form for seminar registrations. You check a box on the event(s) you wish to register for, and get a validation form id'ing those you choose. I receive an email with the dates chosen. There are about 8 events. A few folks are sending the form without checking any box at all - To fix, I get FP validation options for text boxes but not check boxes....any ideas appreciated. The form is at
http://www.mitforumct.org/calendar.htm
maduko

 

Posts: 168
From: Tulsa OK USA
Status: offline

 
RE: validation: require at least one check box to be, w... - 11/8/2001 23:26:00   
I've run into that problem also. There is probably a Javascript solution but you would most likely need to disable the FP form validation.

One workaround is to use radio buttons instead of a checkbox. You can use the FP validation on a radio button. Since you offer multiple selections you would need a radio button "group" for each event.

A bit lame- if I select an event by accident or change my mind there isn't any way to uncheck that radio button.


(in reply to Guest)
puiwaihin

 

Posts: 1378
From: Taiwan
Status: offline

 
RE: validation: require at least one check box to be, w... - 11/8/2001 15:19:00   
Another purely HTML solution is to use a multiple entry select box and disallow the first option. But, I personally hate those things.

Another thing to do is put a onMouseDown event handler on the submit button and run a validation script.

In the script make use of something like:
var valid=false;
if(check1.checked==true)
{
valid=true;
}

//make a condition for each box
//or make some sort of loop to check each box

if(valid==true)
{
document.formName.submit();
}
else
{
alert("Check at least one of the options");
}


(in reply to Guest)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> validation: require at least one check box to be, well, checked
Page: [1]
Jump to: 1





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