Before working with this API, you must add a signature element to your page. In the
Wix Editor, add a Signature and a Submit button to a form on your
page. The signature element comes with a signature pad and a built-in Clear
button. After the site visitor draws their signature on the pad and submits the form,
the SignatureInput
element's value
is populated with a base64-encoded
Data URL representing a PNG image of the signature.
The SignatureInput
APIs work with both Wix Forms and custom forms, which are forms you
manually create by adding user input elements and a submit button to your page.
With code, you can use the SignatureInput
API to:
clear()
function.onChange()
event handler to detect if the signature value changed or was cleared.value
before attaching.Using Signatures with Wix Forms:
Wix Forms automatically adds the signature to the Media Manager and to the collection generated for you by Wix Forms, so you do not have to code this functionality unless working with another collection.
About Inline Images in Collections: