Text summary via loop through?
hi,
i'm trying generate text summary field @ end of form. form has many sections shown, hidden, or duplicated assume best way loop through of visible form objects - rather telling summary field field values @ defined locations, tell go what's there , report back.
the summary format "caption = value; caption = value;" etc
it run on button click, though prevent differences between field value , summary value, ideally run live, e.g. on calculate event of summary field.
any gratefully received!
hi,
maybe code started, goes though form page page, every field on page , displays alert of field caption , value each field visible.
function isnodevisible(node) {
for (; node.somexpression !== "xfa[0].form[0]"; node = node.parent) {
if (node.presence == "hidden" || node.presence == "invisible") {
return false;
}
}
return true
}
for (var = 0; < xfa.host.numpages; i++) {
var fields = xfa.layout.pagecontent(i, "field");
for (var j = 0; j < fields.length; j++) {
if (isnodevisible(fields.item(j))) {
if (fields.item(j).ui.oneofchild.classname != "button") {
app.alert(fields.item(j).caption.value.text.value + " " + fields.item(j).rawvalue);
}
}
}
}
you need more work caption if have radio buttons
regards
bruce
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment