Working on a form which I want to access protect various subforms with a password that the user creates.
The script works ok apart from the AM11H.sfContent.sfRows subform, where it only protects the first instance. All other instances are unprotected.
var pword = AM11H.sfContent.sfPassCode.txtConCode.rawValue
if (AM11H.sfContent.sfPassCode.txtConCode.rawValue == pword) {
AM11H.sfContent.sfProperty.access = "protected";
AM11H.sfContent.sfNoAccess.access = "protected";
AM11H.sfContent.sfRowHead.access = "protected";
AM11H.sfContent.sfRows.access = "protected";
AM11H.sfContent.stCompletedBy.access = "protected";
}
Can anyone help me with the script to lock all the instances of the AM11H.sfContent.sfRows subform. There are some 15 fields in the subform.
Thanks.