Click to See Complete Forum and Search --> : Dynamic Form


betheball
01-01-2004, 09:57 AM
I want to create a form the values of which change on the fly. For example, what I need is one text box for a date and then three others that return other dates based on the first date. So, for example, the user enters 1/5/2004 in the first text box. When the focus leaves the first box, the other three boxes should auto-populate with dates 30, 60, and 90 days after the date entered in the first field. Any thoughts?

olerag
01-01-2004, 05:03 PM
Using "onBlur()" event on the enterable field, call a function
that:
- Validates the value is a legitimate date.
- If validation succeeds, perform the necessary additions
and assign those values to your other fields.

Do you need a code sample?