Table of Contents

Class FormField

Namespace
Honua.Sdk.Field.Forms
Assembly
Honua.Sdk.Field.dll

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

string

ChoiceSetId

Shared choice-set identifier when choices are resolved from a catalog.

public string? ChoiceSetId { get; init; }

Property Value

string

Choices

Choice values for single- or multi-choice fields.

public IReadOnlyList<FieldChoice> Choices { get; init; }

Property Value

IReadOnlyList<FieldChoice>

FieldId

Stable field identifier used as a record value key.

public required string FieldId { get; init; }

Property Value

string

HelpText

Optional help text for host UI.

public string? HelpText { get; init; }

Property Value

string

Label

Human-readable field label.

public required string Label { get; init; }

Property Value

string

MediaPolicy

Media capture policy for photo, video, audio, signature, sketch, or file fields.

public FieldMediaCapturePolicy? MediaPolicy { get; init; }

Property Value

FieldMediaCapturePolicy

ReferencedFormId

Referenced form identifier for record-link fields.

public string? ReferencedFormId { get; init; }

Property Value

string

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

string

Required

Whether a value is required before submission.

public bool Required { get; init; }

Property Value

bool

SourceFieldName

Provider source field name, when different from FieldId.

public string? SourceFieldName { get; init; }

Property Value

string

Type

Portable field data type.

public FormFieldType Type { get; init; }

Property Value

FormFieldType

Validation

Validation constraints for this field.

public FieldValidationRule Validation { get; init; }

Property Value

FieldValidationRule

VisibilityRule

Optional visibility rule evaluated against the current record.

public FieldVisibilityRule? VisibilityRule { get; init; }

Property Value

FieldVisibilityRule