FSM Mobile Element Properties and Defaults by Type
This reference is intended for administrators and developers who need supported element properties and defaults for Field Service Management (FSM) Mobile.
It lists supported properties and default values by element type and explains how configured values and NetSuite form loading affect initial values and element properties.
This topic includes the following sections:
Value Defaults
A static value sets the initial default when FSM Mobile creates a new record. It doesn't reset or replace the value of a record that already exists. For a value expression, FSM Mobile can calculate or update the value when the expression runs in its applicable default or change context. The expression result must be accepted for the element type.
date and datetime use the current date or date-time only when "value" is omitted. To leave either element blank on a new record, explicitly set "value": "". This matches the stored blank representation. null is also normalized to "" for these types.
Form-Generated Properties and Initial Values
When a resource uses form, FSM loads the NetSuite form and translates its fields into elements for FSM Mobile. FSM then applies the resource's explicit element configuration over those definitions. A property can therefore be present in the generated element even when it is absent from the custom JSON.
Form loading supplies two separate kinds of information:
-
Field information and initial values - The field ID supplies the element name. The field label, required status, read-only status, disabled status, and hidden status can supply the corresponding element properties. If NetSuite supplies an initial field value during form loading, FSM carries that value into the element's
value. Select options are also loaded unless disabled by the form configuration. -
Properties added by FSM - The original NetSuite field type determines the FSM Mobile type and generated properties. For example, Text receives
maxlength: 300. Text Area receivesmaxlength: 4000androws: 6. Long Text receivesmaxlength: 1000000androws: 12. These are FSM translation defaults. The form loader doesn't read NetSuite field restrictions formin,max,maxlength, orpattern.
A form-generated value, including an empty value supplied by NetSuite, takes precedence over the FSM Mobile type's initial-value fallback unless the element configuration overrides it. Initial values for fields loaded from a form vary with the field and record initialization context. Existing records use their loaded record values rather than being reset to these new-record defaults.
Omitting a property from an element override retains the generated property. Changing only type can also retain properties generated for the original field. Explicitly configure any affected properties, such as maxlength and rows, for the intended result.
The FSM Mobile Element Properties and Defaults by Type table identifies the relevant properties and defaults that vary by element type. For information about NetSuite field translation and form-loading options, see FSM Mobile Resource Properties Reference.
Check initial values as well as user-entered values against the element's effective limits. For example, a Text element generated from a form can receive a 500-character initial value and retain maxlength: 300. Loading the value doesn't automatically shorten it or increase the limit. Correct the initial value or configure an appropriate limit that the destination NetSuite field also accepts. Increasing an FSM Mobile limit doesn't change the NetSuite field's capacity.
The following table brings together each type's relevant properties and their defaults. The Common Element Properties are: type, name, parent, value, label, required, disabled, hidden, readonly, and class. Initial-value fallbacks are listed in FSM Mobile Element Types. A loaded form can supply a different initial value as explained in Form-Generated Properties and Initial Values.
The defaults apply only when a combined configuration or generated form definition doesn't already supply the property. Where the original NetSuite field type changes the result, the final column identifies that variation. heading supports only the properties listed in its row. Top-level elements and direct table children can also use column. For the column property, see Element-Specific Properties.
|
Type |
Common Properties |
Supported Properties |
Type-Specific Defaults and Form Variations |
|---|---|---|---|
|
|
All |
None |
No additional properties. A form can supply a checked or unchecked initial value. |
|
|
All |
|
|
|
|
All |
|
|
|
|
All |
|
|
|
|
All |
|
|
|
|
Subset supported, as listed in the next column. |
|
|
|
|
All |
|
|
|
|
All |
|
The default |
|
|
All |
|
Form translation applies these values:
|
|
|
All |
|
|
|
|
All |
|
|
|
|
All |
|
|
|
|
All |
No additional properties. It is the only supported parent element type, and direct child elements use its |
No additional property defaults. Configure each child's limits separately. |
|
|
All |
|
|
|
|
All |
|
|
|
|
All |
|
|
|
|
All |
|
|
|
|
All |
|
|
The following table lists JSON fragments for static element defaults. The form-generated variations in the property-support table still apply.
Time steps are in seconds, signature dimensions are in pixels, and character limits are in characters. For runtime dates, generated names, image filters, and values that vary by account, see the reference tables.
|
Element Type |
Default Configuration |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|