I have read the LiveCycle Designer Scriping Reference and test a example in it.
for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
var oFields = xfa.layout.pageContent(nPageCount, "field");
var nNodesLength = oFields.length;
// Set the field property.
for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
oFields.item(nNodeCount).access = "readOnly";
var nodeName = oFields,item(nNodeCount).name;
}
}
I found that it can not get the name of the group of radio button(the group is exclGroup , i think) by this method, I also tried "pageContent(nPageCount, "pageArea")" and other, may be i use the wrong method to get the group name.
I want to find the group object and compare the group name with predefined string so that to decide whether to change the group object value.
Anyone can help me?
Thanks,
Jasper