This content has been marked as final.
Show 1 reply
-
1. Re: How do I use javascript or formcalc to reference child controls (not by name)
BR001 Aug 16, 2012 5:23 AM (in response to past-tense)Hi Scott,
The subform has a nodes collection you can loop though, as you suspected. If might show up more than you want but you can test the className to see if it is a field and then ui.oneOfChild.className to work out what type of field. So;
for (var i = 0; i < Subform1.nodes.length; i++)
{
var n = Subform1.nodes.item(i);
console.println(n.className + " " + n.name + " " + n.ui.oneOfChild.className);
}
Hope this helps.
Bruce


