Correction
Please add the OnBeforeChange handler code to the "signatureN" group where the signature is stored, not to the section you are signing.
In other words (my excample) browse to :
Tools - Form Options - Digital Signatures - "Enable digital signature for specific data" - Modify/Add
Note the "Store signatures in the following group" value. It will be a read only value, eg /my:myFields/my:signature3/my:signature4
Add the code above into that particular group.
And now the thing works.
- NKELKAR