script to clear a signature | Community
Skip to main content
MHWinter
Level 4
August 21, 2024
Solved

script to clear a signature

  • August 21, 2024
  • 1 reply
  • 819 views

Hello,

I reviewed past entries on this topic but cant get my form to work:

I have the following script line to clear a signature field on the click event of a button that is not inactivated by the signature.

xfa.host.resetData("xfa.Myform.Subform5.MySignature");

 

However, when using the form in Acrobat, the script does not function and the console is offering the following error message: "Method: 'resetData' cannot be called because doing so would violate this document's permissions settings."

Is there a form's setting I need to change to get the script to work?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MHWinter

I think I found what the problem is: a signature field cannot be cleared by a script in the form (security feature of the form).

Anyway, I removed the signature field and replaced by a text field with a scripts that mimics a bit the behavior of a signature field (locking fields...). not what I initially imagined but it should do the work!

1 reply

MHWinter
MHWinterAuthorAccepted solution
Level 4
August 23, 2024

I think I found what the problem is: a signature field cannot be cleared by a script in the form (security feature of the form).

Anyway, I removed the signature field and replaced by a text field with a scripts that mimics a bit the behavior of a signature field (locking fields...). not what I initially imagined but it should do the work!

radzmar
Level 10
September 7, 2024

You can't remove signatures by others, but and only your own. This makes sense because the ability of removing foreign signatures would make the entire idea of signatures obsolete.