Avatar

Level 10

Hi Jake,

Paul has an excellent solution here: Re: Locking selected fields of a fillable form

You need to copy the script object 'myScriptObject' into your form, because this is where the main action takes place.

Parallels Desktop1.png

Also the script in Paul's 'lock all fields' button call the function 'LockAllFields' in the script object.

myScriptObject.LockAllFields(form1);

You see that Paul is passing the name of the root node 'form1' through to the function. This means that all objects in the form are locked.

You would need to set up separate email buttons, with the above script before the email script. Instead of passing 'form1' through to the function you would pass the name of the subform that you want to lock.

If you do a search of 'lock all fields paul' on the forum, you will get other discussions of this solution.

Hope that helps,

Niall