In the case you need to wrap it into a subform the code needs to be
changed into:if (this.parent.parent.index gt 0) then $.access =
"readOnly"endifExplaination:this = text field, 1st parent = subform, 2nd
parent = master page, index = current index number of the repeated
master page