Avatar

Level 10

Hi,

If you have set up a collection for the signature field, then you can specify the fields that are to be locked when the field is signed. This is under the Object > Signature palette. This is the best route and should work robustly. I would be inclined to test the form/signature field using the collection first.

You can test to see if the access property of a field is not "open" and then take appropriate action:

if (Textfield.access !== "open") {

     // field is locked proceed with submission

}

else {

     // field is open, stop submission

}

This is a simple example. A function would need to be set up to run through the whole form.

However, I don't think it will give a good user's experience. For example, if the user fills in the form and signs it and there is an issue with the script. The submission may fail, but the user may not know how to solve it.

I would recommend setting up the collection of fields that you want locked and then test that. No script involved.

Hope that helps,

Niall