Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic form

Status
Not open for further replies.

nichkip101

Programmer
Sep 3, 2006
3
0
0
ZA
Hi,
I'm trying to create a dynamic form that can automatically generate empty form fields based on the user input.

E.g. how many children do I have?
In form field I enter 2

Then the form generates 2 empty fields.

Is It Possible?

Thanks
 
Sure is. Have an empty, invisible, ID'ed DIV under each "expandable" question. Evaluate the input using Javascript and add x number of text fields to the empty DIV, then show it.

There's a ton of Javascript examples out there that show how to do this; sorry I don't have the time to whip one up right now.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top