Field types enable you to capture the correct type of data needed within your Forms. When a form submission is created, Samsara returns a JSON response that includes:Documentation Index
Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Top-Level (Default) Fields — These appear directly under the submission object (e.g.,
id,submittedBy,location, timestamps). - A
fieldsarray — Contains all fields (e.g., text, person, multiple choice, check boxes, table, etc.).
The fields array
The fields array on a form submission can contain any of the fields that the related form template includes. Each field has:- A unique ID
- A type (e.g.,
text,person,multiple_choice,table, etc.) - A value object (like
textValue,personValue,multipleChoiceValue,tableValue, etc.)
Field type reference
Text
Captures freeform text (no enforced maximum length apart from the 65,535-character overall form limit).Automatically detects URLs, making them clickable in the Samsara Driver App.
Person
Select a user (driver or admin) in the organization. Can be filtered by tags or roles. Also supports anentryType of manual if a user is typed in offline. The example below shows a “tracked” user with a known ID.
Datetime
This type can store a date, time, or datetime depending on how the template is configured. Unlike the default submission timestamp at the top level, these fields appear in the fields array with adateTimeValue.
Date
Datetime
Time
Multiple Choice (Single Select)
Select exactly one of multiple predefined options (like a radio button). Can have up to 100 options.Check Boxes (Multi Select)
Select one or more predefined options. Like a set of checkboxes. Min 1, max 100 options.This sample shows an attached note. Notes can be required if the selected option triggers a requirement.
Number
Captures positive numeric values. No maximum length by default. Does not support negative numbers. Can include decimals without any enforced limit on decimal places.Asset
Select a Samsara asset (Vehicle, Trailer, Equipment, Unpowered). One asset per form. Assets related to form submissions are surfaced at the top level of the form submission data underasset.
Signature
Draw a signature on the device. The signature is stored as an image and is accessible via a URL with an expiration. A maximum of 50 total images (photos + signatures) is supported per submission.Table
Organizes sub-fields (columns) in rows. Each column has a type (text, multiple_choice, etc.). Each row has matching “cells” that store user responses. See the Forms with tables guide for more detail about working with tables.Each column is defined at the template level (
id, type, and label), and each row’s cells match those columns. The row’s id must match the table field’s id.Other field types
| Field Type | Description |
|---|---|
instructions | A read-only text block, often used to guide workers. Supports rich text, truncated with “see more” for length. No user input. |
media_instructions | Similar to instructions, but for embedding images/videos (up to 3MB for images, 15MB for videos). No user input. |
photo (media) | An older approach for capturing a photo (similar to the “media” field). The user can take a photo or choose from the library. Has a max of 50 images (including signatures) per submission. |
Sections
Sections are not listed in the fields array. Sections are logical groups of fields in the form template. Each section has a name, and all fields in the form are placed in at least one section.Additional notes
- Required Fields
- If a field is required in the template, the driver cannot submit until they’ve provided valid data.
- Some templates can require notes, images, or issues based on a field’s value (e.g., “If the driver selects ‘No,’ require an issue.”).
- Timestamps & Timezones
submittedAtTime,createdAtTime, andupdatedAtTimeare always stored in UTC (ISO 8601). The dashboard or your local environment may show these times in the local timezone.
- Limits
- A single form submission can include up to 50 images total (photos + signatures).
- Check box or multiple choice fields can have up to 100 options.
- The text field has a large character limit (65,535 overall, or 64KB of data) in practice.