Skip to content
MyAppBuilder
StableFormsVersion 1

Camera

Overview

Opens the device camera to take a photo on the spot and uploads it. On desktops it falls back to a normal image picker.

Takes a photo with the device camera.

When to use

  • Photo of completed work before leaving the site
  • Snapshot of a meter reading
  • Picture of a damaged parcel at delivery
  • ID check at a counter

When not to use

  • Choosing existing photos: use Image Upload
  • Scanning codes: use Barcode or QR Scanner

Quick start

  1. Add a Camera inside a Form and set Label and Field key (Image field)
  2. Turn on Required when a photo is mandatory
  3. Install the app on the phone (PWA) for the smoothest camera access

Properties

Labeltext (bindable)

The caption shown above the field. Keep it short and specific ("Work email", not "Email 2"). It is also read by screen readers and used in automatic error messages.

Default: Camera

Example: Delivery address

Field keytext

The key this value is saved under when the form is submitted. To save into an entity field, use that field's key exactly (lowercase, underscores). Inputs without a key are not included in the saved record.

Default: camera

Example: phone_number

Two inputs with the same key overwrite each other. Keys must start with a letter and contain only lowercase letters, digits and underscores.

Help texttext (bindable)

A short hint shown under the field until a validation error replaces it. Use it for format expectations or why you ask for the information.

Example: We only call about your order.

Default valuetext (bindable)

The value the field starts with. It is included when the form is submitted even if the visitor never touches the field. Bind it to pre-fill the photo from the current user, a page parameter or the current record.

Requiredboolean

Blocks submission while the field is empty and shows a red asterisk next to the label. The message is “<Label> is required” unless you set a Validation message.

Default: false

Read onlyboolean (bindable)

Shows the value but prevents editing. Useful for values you pre-fill and want the visitor to see but not change. Bind it to make a field editable only for some roles or statuses.

Default: false

Disabledboolean (bindable)

Greys the field out and skips it from keyboard navigation. Bind it to a condition such as “Status is Closed” to lock a field in context.

Default: false

Data binding

Saves the uploaded photo's URL into an Image field, the same as Image Upload. One photo per input (no multiple).

Properties that can use dynamic data: Label, Help text, Default value, Read only, Disabled.

Events

On change
Runs every time the photo changes. The new value is available as Event → value. Typical uses: Set State to drive a filter or a visibility rule, Show Toast for instant feedback. Avoid slow actions (API calls) on every keystroke.
On focus
Runs when the visitor enters the field (click or Tab). Useful for showing contextual help or opening a drawer with instructions.
On blur
Runs when the visitor leaves the field. A good moment to run lookups (e.g. fetch customer details once an email is complete) because it fires once instead of on every keystroke.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Other components can read this component's value from the Data Picker → Component state.

Responsive behavior

Uses 6 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.

Permissions

The browser asks for camera permission the first time. Works on https in the published app and in Preview on a device with a camera.

Mobile behavior

  • Uses the rear camera by default
  • If the camera is denied, the photo library opens instead on most phones

Examples

Completion photo

Example
Label: Photo of finished work
Field key: completion_photo
Required: on
Validation message: Take a photo before closing the job

Limitations

  • No in-app viewfinder; the system camera app opens
  • Desktop browsers show a file picker instead of the camera

Troubleshooting

The file picker opens instead of the camera

Why: Desktop browser or camera permission denied

Fix: Test on a phone; check site permissions for the camera

Related

Was this helpful?