Retriving an array of all form
Posted: Mon May 16, 2005 9:49 am
Hello,
I would like to know if there's a funcion or a simple way to retrieve an array of all forms field present in a form.
I've a form made of 20 field and want to reset all using a function instead of reset button; the reason is that the form can take parameters from session's variables but sometime I need to force the cleaning.For now I've done form.field1.value = "", form.field2.value = "" .... and so on bu since I would like to use that function for other forms I just ask myself if there's a way to take all the fields and then with a for cycle to clean them all.
Thanks
Paolo
I would like to know if there's a funcion or a simple way to retrieve an array of all forms field present in a form.
I've a form made of 20 field and want to reset all using a function instead of reset button; the reason is that the form can take parameters from session's variables but sometime I need to force the cleaning.For now I've done form.field1.value = "", form.field2.value = "" .... and so on bu since I would like to use that function for other forms I just ask myself if there's a way to take all the fields and then with a for cycle to clean them all.
Thanks
Paolo