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

Configuration options for displaying an individual field within the FeatureForm widget.

See also:
Example:
const featureForm = new FeatureForm({
  container: "formDiv", // HTML div
  layer: featureLayer, // Pass in feature layer
  // Configure fields to display
  fieldConfig: [{
    name: "Incident_desc",
    options: {
      label: "Description"
    }
  },
  {
    name: "Incident_Address",
    options: {
      label: "Contact"
    }
  }]
});

Constructors

new FieldConfig(properties)
Parameter:
properties Object
optional

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

Example:
let fieldConfig = new FieldConfig(
  {
    name: "IncidentType",
    options: {
      label: "Choose incident type"
    }
  }
);

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 name.

more details
more detailsFieldConfig
FieldOptions

The field options.

more details
more detailsFieldConfig

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.

nameString

The field name.

The field options.

API Reference search results

NameTypeModule
Loading...