I have a form that i want to copy the values to another form. the field names are the same, just the form name is different. would this work in an onclick function? I'm a wee bit worried about the syntax. I haven't had the chance to TS it yet because i'm working on 47 differrent things. thanks
for (var indexnum = 0; indexnum < formname.length; indexnum++){
nameOfFieldToCopy = formname[indexnum].name
formname2.nameOfFieldToCopy.value = formname.nameOfFieldToCopy.value;
}
for (var indexnum = 0; indexnum < formname.length; indexnum++){
nameOfFieldToCopy = formname[indexnum].name
formname2.nameOfFieldToCopy.value = formname.nameOfFieldToCopy.value;
}