Data Events Reference

Function reference for data events

ALERT

Display a message as an alert.

CLEARINTERVAL

Clears an interval that was previously started with SETINTERVAL.

CLEARTIMEOUT

Clears a timeout that was previously started with SETTIMEOUT.

CONFIRM

Display a question to the user with an ‘Okay or Cancel’ response and a callback to respond to the result

CURRENTLOCATION

Returns a location object containing metadata about the user’s current location. This location may be different than the record location.

INVALID

Display a validation error message and prevent the record or repeatable item from being saved.

ISLANDSCAPE

Returns true if the photo or video is in landscape mode.

ISPORTRAIT

Returns true if the photo or video is in portrait mode.

MESSAGEBOX

Display a message box with configurable title, message, buttons and optional text input.

OFF

Detaches an event handler set by ON.

ON

Attaches an event handler that listens for record, repeatable, or field events.

OPENURL

Open a URL for a website or mobile app.

PROGRESS

Display a non-dismissible progress message in the mobile app.

PROMPT

Display a text field to get input from the user and a callback to respond to the result

REQUEST

Performs an HTTP request and executes the callback on completion.

SETCHOICEFILTER

Filter the choices in a choice field or classification field.

SETCHOICES

Set the available choices for a choice field.

SETDESCRIPTION

Set the description of a field.

SETFORMATTRIBUTES

Configure specific device functionality and behaviors at the form level.

SETHIDDEN

Set the visibility of a field.

SETINTERVAL

Repeatedly calls a function with a fixed time delay between each call.

SETLABEL

Set the label of a field.

SETLOCATION

Set the location of a record.

SETMAXLENGTH

Set the maximum length for a field.

SETMINLENGTH

Set the minimum length for a field.

SETPROJECT

Set the project of a record.

SETREADONLY

Sets a field to be read-only or editable.

SETREQUIRED

Set whether or not a field is required.

SETSTATUS

Set the status of a record.

SETSTATUSHIDDEN

Set the visibility of the status field.

SETSTATUSREADONLY

Sets the status field to be read-only or editable.

SETSTATUSFILTER

Set the allowable status values for a record.

SETTIMEOUT

Calls a function after a specified delay.

SETVALUE

Set the value of a field.

STORAGE

Returns a storage object for setting and getting local storage items.