Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
DBMan
:
Customization
:
How to make fields selectively required?
Previous Thread
Next Thread
Print Thread
View Threaded
Jan 26, 2000, 6:33 AM
Neila
User
(127 posts)
Jan 26, 2000, 6:33 AM
Post #1 of 3
Views: 2468
Shortcut
How to make fields selectively required?
How can I make certain fields required if a certain other field is filled in but
*not* required if the certain other field is *not* filled in?
Mar 29, 2004, 7:09 AM
kevinws
Novice
(26 posts)
Mar 29, 2004, 7:09 AM
Post #2 of 3
Views: 2390
Shortcut
Re: [Neila] How to make fields selectively required?
In reply to
You have to use javascript to do that! inn your html
like:
<script>
function dataCheck(form) {
if (form.first_name.value=="") {
alert ("Please enter your first name.")
return (false)
}
</script>
put the code between the <head> tags </head>
and make a form with fields and use the same code as above to validate entries!
first_name is a field for example, see below:
<
input
NAME="
first_name
" TYPE="
text
" SIZE="
20
" MAXLENGTH="
40
"
>
good luck!
KevinW ANDRE
webmaster@cyberbrickell.com
Mar 29, 2004, 7:37 AM
LoisC
Veteran
/ Moderator
(3034 posts)
Mar 29, 2004, 7:37 AM
Post #3 of 3
Views: 2384
Shortcut
Re: [Neila] How to make fields selectively required?
In reply to
I don't have a specific thread reference to quote, but if you search on "required" in either the DBMan forums or the FAQ noted below, I know a solution has been posted.
Unoffical DBMan FAQ
http://creativecomputingweb.com/dbman/index.shtml/
Previous Thread
Next Thread
Print Thread
View Threaded