Avatar

Level 10

It should work for anything like that, you'd have to find out the different class names.

Here's Radzmar's lock fields script:

function lockFields(vNode) {

    if (vNode.className === "field") {

        vNode.access = "protected";

    }

    for (var i = 0; i < vNode.nodes.length; i += 1) {

        lockFields(vNode.nodes.item(i));

    }

}

lockFields(xfa.form);

Here's a link that covers using class names (I haven't done a lot with them myself):

http://andrewalbrecht.com/content.php?pageID=76