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

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

HostedDinner
Level 1
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
HostedDinner
Correct answer by
Level 1
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
HostedDinner
Correct answer by
Level 1
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