Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to reset signature field after signed?

Avatar

Level 4

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

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

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);

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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);