Lock a particular cell on every row of a table



I have a single Table ("TableA") with 4 rows - all named "Row". Thus...Row[0], Row[1], Row[2], and Row[3].

Each row has 3 cells.

What I'm trying to do is lock the 2nd cell ("Cell2") on every row - essentially locking an entire column.

I tried using the following script on a button, but it doesn't work.

TableA.Row[*].Cell2.access = "protected";

Any ideas?

Thanks in advance!


Accepted Solutions (1)

Accepted Solutions (1)



I figured it out using a loop statement...

Will leave this posted just in case it helps someone else in the future!

var rows = xfa.resolveNodes("TableA.Row[*].Cell2");

    for (var i = 0; i < rows.length; i++)


                var lockField = rows.item(i);

        lockField.access = "protected";


Answers (0)