This is the code required to create the access property on a number of fields using a Script Object.

Step 1

  1. Create a script object at the form level.
    1. Right click the form1 heading.
    2. Select Insert Script Object.
    3. Right click on the Script Object and rename it to something relevant.
  2. Add the following code:

    function access(x) { x.access= "open|protected|readOnly|nonInteractive"; }

Step 2

Add code to the required fields on the form ready event:

[script object name].access(this);

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy