Table of Contents

Class FormFieldInfo

Namespace
MegaForm.Sdk
Assembly
MegaForm.Sdk.dll

A single field's metadata, as exposed to SDK consumers (e.g. a custom renderer).

public sealed class FormFieldInfo
Inheritance
FormFieldInfo
Inherited Members

Properties

HelpText

Help/hint text.

public string? HelpText { get; set; }

Property Value

string

Hidden

Whether the field is hidden.

public bool Hidden { get; set; }

Property Value

bool

IsInputField

True for value-bearing inputs; false for layout/display types (Html, Section, Row, UniqueId).

public bool IsInputField { get; set; }

Property Value

bool

Key

Unique machine key, e.g. "first_name".

public string? Key { get; set; }

Property Value

string

Label

Display label.

public string? Label { get; set; }

Property Value

string

Options

Choice options (for Select/Radio/Checkbox), or empty.

public IReadOnlyList<FieldOptionInfo> Options { get; set; }

Property Value

IReadOnlyList<FieldOptionInfo>

Order

Sort order within the form.

public int Order { get; set; }

Property Value

int

Placeholder

Placeholder text.

public string? Placeholder { get; set; }

Property Value

string

ReadOnly

Whether the field is read-only.

public bool ReadOnly { get; set; }

Property Value

bool

Required

Whether the field is required.

public bool Required { get; set; }

Property Value

bool

Type

Field type as a string, e.g. "Text", "Email", "Composite" (kept as a string so plugin types survive).

public string? Type { get; set; }

Property Value

string

Validation

Validation rules, or null when the field has none.

public FieldValidationInfo? Validation { get; set; }

Property Value

FieldValidationInfo

Width

Layout width hint, e.g. "50%".

public string? Width { get; set; }

Property Value

string