How to reset signature field after signed?

Avatar

Avatar
Validate 1
Level 2
patrickpai
Level 2

Likes

3 likes

Total Posts

44 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
patrickpai
Level 2

Likes

3 likes

Total Posts

44 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
patrickpai
Level 2

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
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
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)