[thelist] adding form fields based on field value

Pringle, Ron RPringle at aurora-il.org
Tue Mar 1 16:32:31 CST 2005


Ok, got the form validation portion all sussed out now. Thanks everyone for
their help!

My next problem. 

Each event that gets entered into the form could have more than one date,
start time and end time associated with it. The classic one-to-many
relationship.

In my form I would like to create a 2 digit text field into which could be
entered the number of dates for the event. Once a value is entered, I need
to grab it and feed it to a loop that will then display the appropriate
number of fieldsets (with each containing a field for date/time start/time
end).

This has to happen dynamically on the form page without reloading the page.
I assume I'll have to use javascript for this? Can anyone point me in the
right direction?

Regards,
Ron


More information about the thelist mailing list