Views
Replies
Total Likes
function removeXMLNode(strNodeName){
// XML nodes within 2nd indendation and below cannot be removed (Bug?), exception is thrown.
// Thus use try/catch.
try {
var objNode = xfa.record[strNodeName];
if (objNode){
xfa.record.nodes.remove(objNode);
}
}catch(e){
console.println("removing XML node named '"+ strNodeName +"' failed.");
}
}
removeXMLNode("Subform1")
prior to the form being submitted.form1.Subform1.SubSubform1
cannot be removed. I suppose, it's a bug.Views
Replies
Total Likes
function removeXMLNode(strNodePath){
var objNode = xfa.record[strNodePath];
if (objNode){
xfa.record[objNode.parent.name].nodes.remove(objNode);
}
}
Views
Replies
Total Likes