Click to See Complete Forum and Search --> : auto populating a form??
chicoco25
02-08-2005, 03:18 PM
In a form I already have created in HTML, I want to have a button auto populate another button when the first one is checked. So for instance, If you chose button #3, this automatically selects button #5 in the form. Is this possible? Please help.
Thanks.
NogDog
02-08-2005, 03:36 PM
It is possible with JavaScript. Just remember that if this is for general WWW access, maybe 10% of you visitors will not have JS available/enabled, so you don't want it to be required in order for the form to work, only something to enhance it if available.
chicoco25
02-08-2005, 03:41 PM
I dont know any Java. Im not the webmaster...and she is unavailable. I know a fair share of html. What do you suggest?
NogDog
02-08-2005, 03:52 PM
"JavaScript" is not "Java". JavaScript is a sort of programming language which is embedded within an HTML page (between <script>...</script> tags). It is only vaguely related to Java.
In order for your form to respond dynamically at the user's browser as you describe, some sort of programming will be required; whether that is JavaScript, using a Java applet, a flash object, etc.
The only other option is to do it at the server side, presenting the user with a sequence of form pages (present them the first things they must select, then when they submit that they get the next form prefilled based on the first one, and so on).
chicoco25
02-08-2005, 04:08 PM
Thanks alot for all your help. Is there somewhere that I can get a copy of the script? THanks again.
NogDog
02-08-2005, 04:29 PM
I don't think there is a single "the script" that you can just plug in. But I'm sure the folks in the JavaScript (http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3) forum could get you pointed in the right direction.