Class FormField
Single portable input field definition.
public sealed record FormField : IEquatable<FormField>
- Inheritance
-
FormField
- Implements
- Inherited Members
Properties
CalculatedExpression
Optional calculated expression, such as concat($first, ' ', $last).
public string? CalculatedExpression { get; init; }
Property Value
ChoiceSetId
Shared choice-set identifier when choices are resolved from a catalog.
public string? ChoiceSetId { get; init; }
Property Value
Choices
Choice values for single- or multi-choice fields.
public IReadOnlyList<FieldChoice> Choices { get; init; }
Property Value
FieldId
Stable field identifier used as a record value key.
public required string FieldId { get; init; }
Property Value
HelpText
Optional help text for host UI.
public string? HelpText { get; init; }
Property Value
Label
Human-readable field label.
public required string Label { get; init; }
Property Value
MediaPolicy
Media capture policy for photo, video, audio, signature, sketch, or file fields.
public FieldMediaCapturePolicy? MediaPolicy { get; init; }
Property Value
ReferencedFormId
Referenced form identifier for record-link fields.
public string? ReferencedFormId { get; init; }
Property Value
RelevanceExpression
Optional boolean relevance expression. When set it supersedes
VisibilityRule and is evaluated by the expression engine,
enabling compound conditions such as ${a}='x' and ${b}>5. The
field is shown only when the expression evaluates truthy.
public string? RelevanceExpression { get; init; }
Property Value
Required
Whether a value is required before submission.
public bool Required { get; init; }
Property Value
SourceFieldName
Provider source field name, when different from FieldId.
public string? SourceFieldName { get; init; }
Property Value
Type
Portable field data type.
public FormFieldType Type { get; init; }
Property Value
Validation
Validation constraints for this field.
public FieldValidationRule Validation { get; init; }
Property Value
VisibilityRule
Optional visibility rule evaluated against the current record.
public FieldVisibilityRule? VisibilityRule { get; init; }