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

signatureValidate in LiveCycle does not work, because getField does not exists

Avatar

Level 1

Hi,

I have a problem. I have 2 signature fields and they should sign the form one after another. The first will sign only a few fields and the second one will sign everything.

The problem now is, that the first signer should not see (or is not able to sign) the second field.

My idea was to hide the signature field and show it, if the other field is already signed. This should happen in the form:ready script, but I have tried several things to get this work.

Send mail based on Signature Field is shown how it could work, but it does not work in this case, because the there is no valid event.target in form:ready. I have tried resolveNode instead getField, but that doesn't work either.

I have something like this:

var oState = event.target.getField("form1[0].Page1[0].Unterschriften[0].Mitarbeiter[0]").signatureValidate();

but is always null. It does work if I use the same code inside an event like enter, exist, etc. I also tried to fire such a event and execute that, this does nothing...

So how can I show my second signature field only, when the first field is signed already?

Best Regards

1 Accepted Solution

Avatar

Correct answer by
Level 1

I've got it work like here: Check State of Signature Field: event.target does exist on docReady, so I can check it at this point.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

I've got it work like here: Check State of Signature Field: event.target does exist on docReady, so I can check it at this point.