Hi,
Try something like;
var somethingMissing = false;
var subformList = Page1.resolveNodes("Subform[*]");
for (var i = 0; i < subformList.length; i++)
{
var subformItem = subformList.item(i);
var smallSubformList = subformItem.resolveNodes("SmallSubform[*]");
for (var i = 0; i < smallSubformList.length; i++)
{
var smallSubformItem = smallSubformList.item(i);
if ((smallSubformItem.Field1.isNull && smallSubformItem.Field1.presence == "visible") ||
smallSubformItem.Field2.isNull)
{
somethingMissing = true;
}
}
}
if (somethingMissing)
{
app.alert("something missing");
}
Regards
Bruce