For continued disscussion on this topic : Text that Appears According to Form Choices
FPMatt
08-16-2000, 08:00 PM
Hello,
I am working on a form that should allow the user to pick an item from a list, and then based on their choice text and more form choices appear on the page. The exact text and choices differ according to the original choice. Can someone recommend the best way to implement this? I was thinking of a Javascript array, but I'm open to any ideas.
Thanks for your help.
Matt
gzazJim
08-16-2000, 09:37 PM
FPMatt, welcome to the forum.
If you have some code, or a URL - that would assist us greatly in assisting you!
That being said, I'm sure with dHTML you could hide/show certain sections of the form based on the user's previous selections.
Post back with some more info, and I'm sure we'll be able to get you sorted out.
Good luck,
Jim
Vincent Puglia
08-16-2000, 09:58 PM
Hi FPMatt,
If you mean what I think you do, arrays would be a good choice for the text. Insofar as the form elements themselves: you might be interested in the "Hiding Selects in a Form" script/tutorial at my site. Note that netscape requires the form tags for all layered elements. That means you will have to place 'type=hidden' variables into the form that gets submitted.
Vinny
big_wreck
08-16-2000, 10:01 PM
I have the exact thing on a form at my work.
What I did was two-fold:
1. Use arrays to build a set of dynamic select-lists.
2. Show / Hide layers based on other choices on the page.
It seems to be working well.
Look at Vinny's site for pointers.
FPMatt
08-18-2000, 07:44 PM
Hello again everyone,
Thank you for your advice and pointers. I've been working with some of Vinny's code and have come up with what I was looking for. I appreicate the help and now that I've found this message board you can bet I'll be back!
FPMatt
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.