Script to capture who digitally signed the form

Accepted Solutions (1)

Accepted Solutions (1)

Answers (7)

Answers (7)

radzmar

MVP

08-10-2017

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,})).+/, "");

radzmar

MVP

05-10-2017

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,}))/, "");