Prevent changes after signing

This example shows how to set all of your form fields to read-only once a signature has been added to the record.

ON('edit-record', function (event) {
  if ($signature) {
    DATANAMES().forEach(function(dataName) {
      SETREADONLY(dataName, true);
    });
  }
});