There's no such status as "protected". A field can be set to be hidden,
and/or read-only, though.
Thanks. To clarify, this is an XFA form and the code I am using is:
Page1.field1.access = "protected";
or Page1.field1.access = "open";
I suspected that might be the case. You should post your question in the
LiveCycle Designer forum, then.
Your forms are being created in LiveCycle, please use one of the forums for that product.
If the same scripts work some fields then you might need to use the full path of the other fields to apply the property.
Look at hierarchy structure to know the exact place of the field.
Thanks. I tried giving the complete path but it still did not work.
I will shift this question to the LiveCycle forum.