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

Converting a textarea to an input field for signatures.

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.

In the properties panel Conditions you should also set the value for Max. characters to 0. The image is encoded as a base64 string and written to the textarea.

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.

Tags:
Created by awa on 09.04.2019, 16:14
Translated into en by awa on 09.04.2019, 16:14
Copyright 2000-2025