Skip to main content

The Signature component for Retool Mobile

An input field to digitally capture a signature as an image.

Properties

All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

disabled

Whether input, interaction, selection, or triggering is disabled.

Type boolean
Format True/False
Configurability Inspector > Interaction > Disabled
Default
false
Examples
true

events

A list of configured event handlers that trigger actions or queries.

Type array
Array values object
Configurability Inspector > Interaction > Event handlers
Array Object Properties

event

The event that triggers the action. Refer to the events section for details of available events for this object.

Type string
Configurability Inspector > Interaction > Event handlers > Event

method

The JavaScript method to perform when type is datasource, widget, state, or localStorage.

Type string
Configurability Inspector > Interaction > Event handlers > Edit event handler > Run script actions

type

The type of action to perform.

Type string
Configurability Inspector > Interaction > Event handlers > Edit event handler > Action
Allowed Values
ValueDescription
datasource

Control query.

widget

Control component.

script

Run script.

state

Set variable.

localStorage

Set localStorage.

util

Perform utility action (e.g., Open URL or Confetti).



hidden

Whether this object is hidden from view.

Type boolean
Format True/False
Configurability Inspector > Appearance > Hidden
Default
false
Examples
true

instructions

Additional text to display.

Type string
Configurability Inspector


labelCaption

The additional text to display with the label.

Type string
Format Plain Text
Configurability Inspector > Content > Add-ons > Label > Caption

placeholder

The text to display within the input field when there is no value.

Type string
Formatstring
Configurability Inspector > Content > Placeholder
Default
Enter a value
Examples
Enter a value

value

The value.

Type string
Format Blob or file URI
Configurability Read-only
Examples
blob:example.com/12345678-1234-5678-1234-567812345678
file://path/to/file

Methods

JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.

signature.clear()

Clear all values.

Definition
signature.clear()
Examples

Clear the value of signature.

signature.clear();

signature.clearValue()

Clear the current values.

Definition
signature.clearValue()
Examples

Clear the current value of signature.

signature.clearValue();

signature.open()

Open the component.

Definition
signature.open()
Examples

Open signature.

signature.open();

signature.resetValue()

Reset the current value to the default value.

Definition
signature.resetValue()
Examples

Reset the current value of signature.

signature.resetValue();

signature.setDisabled()

Set the disabled value to toggle whether the input field is disabled. Defaults to true without a parameter.

Definition
signature.setDisabled(disabled)
Parameters

disabled

Whether input, interaction, selection, or triggering is disabled.

Type boolean
Format True/False
Default
false
Examples
true

Examples

Disable signature.

signature.setDisabled(true);

Enable signature.

signature.setDisabled(false);

signature.setHidden()

Set the hidden value to toggle whether the component is visible. Defaults to true without a parameter.

Definition
signature.setHidden(hidden)
Parameters

hidden

Whether this object is hidden from view.

Type boolean
Format True/False
Default
false
Examples
true

Examples

Hide signature.

signature.setHidden(true);

Unhide signature.

signature.setHidden(false);

Events

Events triggered by user interactions. You can configure event handlers in the IDE to trigger queries or other actions in response to events.

EventDescription
CaptureA value is captured.