Clear child fields using this.resetForm
Can I clear (no value) a set of child fields (combination of text and listbox) using this.resetForm?
Here is the code I've been messing with:
var oNames = this.getField("prop2")
var aNames = oNames.getArray();
var bBlank = false; // assume no blanks
for(i in aNames) {
if(this.getField("p2check").value == "Off") {
this.resetForm(aNames[i]);
}
}
The part I'm having trouble with is probably obvious; passing the field names returned from the loop to 'this.resetForm'.
Where am I going wrong?
Dan Williams