Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to reset signature field after signed?

patrickpai
Level 3
Level 3

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
Magus069
Correct answer by
Level 10
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

0 Replies
Magus069
Correct answer by
Level 10
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