layout: default title: FormElement parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components.Widgets
FormElement Class
Form elements define what should display within the FormTemplate elements. There are three specific element types:
ArcGIS Maps SDK for JavaScript
public abstract class FormElement : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 FormElement
Derived
↳ FieldElement
↳ GroupElement
Properties
FormElement.Description Property
The element’s description providing the purpose behind it.
public string? Description { get; set; }
Property Value
FormElement.Label Property
A string value containing the field alias. This is not to Arcade expressions as the title is used instead.
public string? Label { get; set; }
Property Value
FormElement.Type Property
Indicates the type of form element.
public abstract string Type { get; }
Property Value
FormElement.VisibilityExpression Property
A reference to the name of an Arcade expression defined in the expressionInfos of the FormTemplate. The expression must follow the specification defined by the Form Constraint Profile. Expressions may reference field values using the $feature profile variable and must return either true or false.
public string? VisibilityExpression { get; set; }
Property Value
Remarks
When this expression evaluates to true, the element is displayed. When the expression evaluates to false the element is not displayed. If no expression is provided, the element is always displayed. Care must be taken when defining a visibility expression for a non-nullable field i.e. to make sure that such fields either have default values or are made visible to users so that they can provide a value before submitting the form.
The referenced expression must be defined in the form template’s expressionInfos. It cannot be set inline within the element object.