FieldOptions

require(["esri/widgets/FeatureForm/FieldOptions"], function(FieldOptions) { /* code goes here */ });
Class: esri/widgets/FeatureForm/FieldOptions
Inheritance: FieldOptions Accessor
Since: ArcGIS API for JavaScript 4.9

The field options used when configuring fields for the FeatureForm widget. Field options can be overwritten only when set values are compatible with the fields' configuration specified in the service.

See also:

Constructors

new FieldOptions(properties)
Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor
String

The field's description.

more details
more detailsFieldOptions
CodedValueDomain | RangeDomain

The field's domain.

more details
more detailsFieldOptions
Boolean

Indicates whether the field is editable.

more details
more detailsFieldOptions
String

The type of editor to use for string field types.

more details
more detailsFieldOptions
String

This property is rendered as a tooltip in the FeatureForm widget.

more details
more detailsFieldOptions
String

The field's label.

more details
more detailsFieldOptions
Number

Restricts the input length.

more details
more detailsFieldOptions
Boolean

Indicates whether the field is required.

more details
more detailsFieldOptions
Boolean

When true, the field is displayed.

more details
more detailsFieldOptions

Property Details

declaredClassStringreadonly inherited
Since: ArcGIS API for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

descriptionString

The field's description. The description is shown below the field.

The field's domain. This is used to constrain the allowable values of the layer.

This only applies to relevant field types. For example, RangeDomain only applies to numeric and date field types.

editableBoolean

Indicates whether the field is editable.

This does not change the underlying service's field and whether it is editable.

Default Value:true
editorTypeString

The type of editor to use for string field types. Possible values are in the table below.

ValueDescription
text-boxAn HTML textbox will be used to capture input.
text-areaAn HTML textarea will be used to capture input.
Default Value:"text-box"
hintString

This property is rendered as a tooltip in the FeatureForm widget. It displays a hint for the attribute field's value.

labelString

The field's label. The label is shown above the field.

maxLengthNumber

Restricts the input length.

This only applies to numeric and text field types.

Default Value:-1
requiredBoolean

Indicates whether the field is required.

This cannot change the underlying service's field requirements.

Default Value:false
visibleBoolean

When true, the field is displayed. Otherwise, it is hidden.

Default Value:true

API Reference search results

NameTypeModule
Loading...