Handwritten signature (jSignature)
You can add an input field for handwritten signatures, allowing the user to sign the form via a touchscreen with a pen or by using the mouse.
This requires the JavaScript library jSignature, which is already distributed with Xima® Formcycle.
Enabling handwritten signatures in forms
To add an input field for a handwritten signature:
- Add a form element of type textarea to the form.
- Give this textarea the attribute signature with the value signature.
Working with the signature image
When you open a submitted form record in the inbox, the signature appears as entered by the user.
Internally, it is encoded as a base64 string and saved in the textarea.
When you want to add the signature to a PDF document via an action of type PDF (Fill), you can use the function b64image. See the help pages on Preparing a PDF document for further details.