This does not work:
The site I want to use the script on is being database generated and has something like 25,000 item pages, each with several SELECT list options. The Option variable uploaded to the database looks like:
"Optional Out Going Mail Slot" "Please Choose" "None, Thanks" "Please Add Mailslot in Top Left (Item # na) (+$15.00)" "Please Add Mailslot in Top Right (Item # na) (+$15.00)" "Please Add Mailslot in Bottom Left (Item # na) (+$15.00)" "Please Add Mailslot in Bottom Right (Item # na) (+$15.00)"
so it would be a serious task to download the database, loop through and replace white-space characters with dashes or underscores on the first element in each option sequence. Is there some way to make names with white spaces work? I could switch to a script that simply checks all selection lists to make sure that option 0 is not selected. But I love all the other features of name, format and combined verification in the above script. Unfortunately, the script relies on the name and validation action of each form element being passed to its function onSubmit. I thought I would ask if anyone can see a way to adapt the script to handling white-spaces before giving up on the idea.