Avatar

Level 10

Hi Jake,

Here is a sample where the 'Subform2' is repeatable. https://acrobat.com/#d=a9ZE9MPvgEVYjsiIwbU47Q

I have amended it to lock the repeating subform. Basically you need to set up a loop to work trough each repeated instance of the subform and lock each one in turn.

var j = _Subform2.count;


for (var i=0; i<j; i++)

{

     var currentSubform = xfa.resolveNode("Subform2[" + i + "]");

     myScriptObject.LockAllFields(currentSubform);

}

Stick with it, I think you are on the right track with Pauls' script.

Niall