Note: Support for 3D on mobile devices may vary, view the system requirements for more information.

This sample uses the FeatureForm widget to update attributes of existing features by calling the applyEdits function when a user selects a feature on the view.

Instead of displaying all of the specified fields in various field configurations, certain fields display based on whether they meet a specified condition. It does this using the visibilityExpression property found on both FieldConfig and FieldGroupConfig classes. This property takes an Arcade expression and if it resolves to true the field renders within the FeatureForm.

The first field configuration displays a field labeled Issue status. If the value is either Completed or In Progress, the second field labeled Resolution will not display. Based on the status field, one or two grouped field configurations display.

fieldConfig: [
    name: "status",
    editable: false, // not an editable field
    label: "Issue status",
    description: "E.g. submitted, received, in progress, or completed."
    name: "resolution",
    label: "Resolution",
    editable: false,
    description: "Resolution if status is 'Completed'",
    visibilityExpression: "($feature.status == 'Completed') && (!(IsEmpty($feature.resolution)))"

Sample search results