Is it possible to access the name of the person who digitally signed a LiveCycle form so I can also save that information to the database?
Solved! Go to Solution.
Views
Replies
Total Likes
You can read those information from the signatureInfo() object.
event.target.getField("form1[0].#subform[0].Signature[0]").signatureInfo().name;
Views
Replies
Total Likes
You can read those information from the signatureInfo() object.
event.target.getField("form1[0].#subform[0].Signature[0]").signatureInfo().name;
Views
Replies
Total Likes
Thank you for your help with this. It returns the name and email address. Is it possible to get just the name?
Views
Replies
Total Likes
No, but since this is just a string you can use javascript methods to extract the desired information.
event.target.getField("form1[0].#subform[0].Signature[0]").signatureInfo().name.replace(/(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/, "");
Views
Replies
Total Likes
This is what I get...
Firstname LastName <> (FirstName LastName)
Views
Replies
Total Likes
Sorry, that doesn't tell me anything.
What was original string?
Views
Replies
Total Likes
Views
Replies
Total Likes
Ok, you'll have to change the regular expression a bit.
event.target.getField("form1[0].#subform[0].Signature[0]").signatureInfo().name.replace(/<*(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})).+/, "");
Views
Replies
Total Likes
radzmar,
That script works perfect!
Thanks so much!
-Don
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies