Question
Form reset problem
Hi all,
I have a cfform containing 3 related cfselects (i.e. bind parameters connecting them), and it all works fine. However, I just noticed one problem: the form contains a Reset button to clear all of the form fields, which it does, but when the first cfselect is reset to it's first option, the bindings are not re-triggered so the other two cfselects do not contain the correct options. I tried adding an onreset="document.myform.firstselectid.onchange();" to the cfform tag, but that didn't work (throws a js error). BTW, I'm testing all of this in IE7 since that's what my client uses.
Anyone know how I can get the bindings to update when the form is reset?
Thanks,
Russ
I have a cfform containing 3 related cfselects (i.e. bind parameters connecting them), and it all works fine. However, I just noticed one problem: the form contains a Reset button to clear all of the form fields, which it does, but when the first cfselect is reset to it's first option, the bindings are not re-triggered so the other two cfselects do not contain the correct options. I tried adding an onreset="document.myform.firstselectid.onchange();" to the cfform tag, but that didn't work (throws a js error). BTW, I'm testing all of this in IE7 since that's what my client uses.
Anyone know how I can get the bindings to update when the form is reset?
Thanks,
Russ
