Overview
As of the August 2022 m-Power update, m-Power maintainer applications now support the implementation of signature capture right from the m-Painter editor.
This feature will allow developers to configure a signature box within their maintainer form over any database field of their choosing.
It should be noted that this feature is only supported in the following maintainer templates:
- Data List with Web Form
- Single Row Web Form
- Calendar
Form Implementation
To begin, ensure that the data type of the field which will capture the user’s signature supports alphanumeric values and is large enough to encompass the value associated to the signature.
The stored signature in the database will be saved as a base64 encoded string , so the CLOB or VARCHAR data types would be most appropriate for any signature field.
The maintainer application should be built as normal over the table containing this field. Once compiled, open the m-Painter editor.
The signature field will by default generate as a textarea box. To make this a signature field, left-click inside the textarea box. In the Element Panel, select “Input Properties”.
Then, select the ‘Signature’ checkbox and press ‘Save’.
In m-Painter, the field will still appear as a default textarea; this is expected. At application runtime however, the signature capture box will render, along with a button to clear the signature as the user fills out the form:
Displaying the Signature
While completely optional, the captured signature can be displayed outside of the maintainer form page, like within the table list page of a Data List with Web Form template. To display a signature, select the data field that holds the signature. From the Element Panel, select the option to “Render Signature”.
Once done, the signature will render as an image at runtime: