What is not working? Of course, tthe script I copied from your post will not work, but the loop part will. So for the solution you say did work, replace this: for (var cfm=0; cfm<Arr.length; cfm++) with this: for (cfm in Arr) Also, I figure your fields are named A1, A2, A3 ......all de way to P20. Next time, try to name them in a parent/child way ---> A.1 , A.2, A.3, etc. That way, instead of having to loop throught all letters and all numbers, you can apply an action on the parent field and all child will be affected. A simple this.resetForm(["A"]) would have taken car of all 20 child fields of "A" var Arr= ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"]; this.resetForm(Arr) these 2 simple lines would have taken care of all 16 * 20 fields because when you enter only one command in a loop, you do not need to but it inside brackets {}. Since resetForm() takes an array of fields names as an argument, you can pass Arr to it directly.
... View more