script to clear a signature | Adobe Higher Education
Skip to main content
MHWinter
Level 4
August 21, 2024
Répondu

script to clear a signature

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?

 

Ce sujet a été fermé aux réponses.
Meilleure réponse par 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 commentaire

MHWinter
MHWinterAuteurRéponse
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.