Copy link to clipboard
Copied
hi,
how do you use these 2 methods of the Field object , getLock & setLock? there's no example in the API reference and also couldn't find useful information on google.
thanks.
Copy link to clipboard
Copied
It's a simple getter and setter for a Lock object, used with signature fields. There's a description of the properties of this object under the setLock method. It basically allows you to lock specific fields when the signature is applied.
Copy link to clipboard
Copied
some code please?
I'd like to see examples of how all those params are used.
thanks.
Copy link to clipboard
Copied
What do you find unclear in the documentation? You need to be able to use the documentation as your primary source. Instead of asking us to write code for you why not tell us your requirement, and share your code as far as you can go. Say what you expect to happen, and what actually happens, including console messages? I think you will learn much more that way than from us creating samples for you to copy.
Copy link to clipboard
Copied
I agree with TSN, but here's a sample of how to use it to set a signature field to lock two fields when signed:
this.getField("Signature1").setLock({action: "Include", fields: ["Text2", "Text4"]});
Copy link to clipboard
Copied
You can change the properties of a signature field and use getLock of this field.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more