TreeINFO-For-M365 documentation
    Preparing search index...

    Provides access to a single search form field.

    Extends IBaseFieldService — inherits value, hidden, readOnly, required, onChange and setValue.

    Available via tisa.search.field.<fieldName> in search custom scripts. Field dictionary is scoped to the active tab's fields.

    const field = tisa.search.field.s_invoiceNumber;

    // Get / set value (bridges react-hook-form)
    console.log(field.value);
    field.value = "INV-001";

    // Control visibility and editability
    field.hidden = true;
    field.readOnly = true;
    field.required = true;

    // Subscribe to value changes
    field.onChange((newValue, { oldValue }) => {
    console.log(`${oldValue} -> ${newValue}`);
    });

    // Set value and wait for evaluation (useful for dependent lookup cascades)
    await field.setValue("INV-002");

    Implements

    • ISearchFieldService
    Index

    Accessors

    • get hidden(): boolean

      Gets or sets whether the field is hidden.

      Returns boolean

    • set hidden(val: boolean): void

      Gets or sets whether the field is hidden.

      Parameters

      • val: boolean

      Returns void

    • get readOnly(): boolean

      Gets or sets whether the field is read-only.

      Returns boolean

    • set readOnly(val: boolean): void

      Gets or sets whether the field is read-only.

      Parameters

      • val: boolean

      Returns void

    • get required(): boolean

      Gets or sets whether the field requires a value.

      Returns boolean

    • set required(val: boolean): void

      Gets or sets whether the field requires a value.

      Parameters

      • val: boolean

      Returns void

    • get value(): any

      Gets or sets the field value.

      Returns any

    • set value(val: any): void

      Gets or sets the field value.

      Parameters

      • val: any

      Returns void

    Methods

    • Subscribes to field value changes.

      Parameters

      Returns void

    • Sets a field value and waits for the value to be evaluated or rendered in the UI. Also allows disabling the onChange event trigger.

      Parameters

      • val: any
      • OptionaldisableTriggerOnChange: boolean

        when true, the onChange event is not raised

      Returns Promise<void>