Reference · Record · lib.rs

FormWidget Record

No description yet.

struct FormWidget {
    var page: UInt32
    var index: UInt32
    var name: String
    var kind: FormFieldKind
    var value: String
    var checked: Bool
    var options: [FormOption]
    var readOnly: Bool
    var rect: DisplayRect
    var label: String
    var required: Bool
    var dateFormat: String?
    var exportValue: String?
}

Fields

FieldTypeDescription
pageu32No description yet.
indexu32No description yet.
nameStringNo description yet.
kindFormFieldKindNo description yet.
valueStringNo description yet.
checkedboolNo description yet.
optionsVec<FormOption>a choice field's options: the value written and the label shown
read_onlyboolNo description yet.
rectDisplayRectNo description yet.
labelStringwhat the file calls the field for a person (/TU), else its name
requiredboolNo description yet.
date_formatOption<String>a date field's pattern from its own scripts ("mm/dd/yyyy")
export_valueOption<String>the value a checkbox or radio writes when on

Used by

form_steps

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.