How to reset signature field after signed?

Avatar

Avatar

patrickpai

Avatar

patrickpai

patrickpai

17-12-2019

Good morning,

 

Just trying to come up with java-script under a button that would allow me to clear signature fields after the document has been signed.

 

I know this is a bit unorthodox, but i don't have the full AEM suite available where i could create a process flow that can handle this better, so i'm stuck with a LiveCycle form that needs a bit of ingenuity.

 

So just click on the button and i would have code to clear up like 5 signature fields on that form.

right now i thought it my be simple like writing something like this:

Row2.SignatureField1.rawvalue="";

 

But it doesn't do anything when i press the button. So i'm sure its a bit more complicated then 🙂

Any ideas on how i can achieve this?

 

Thank you so much,

Patrick

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

17-12-2019

Hi there,

 

It is simpler than you think actually.

As long as the field does not lock all fields and the button is still usable, you can use the resetData method with the signature field's somExpression as follow:

xfa.host.resetData(Row2.SignatureField1.somExpression);

 

Answers (0)