Bluestep JS Documentation
    Preparing search index...

    Interface CreateForeignKeyFieldProperties

    Properties for creating a foreign key field.

    interface CreateForeignKeyFieldProperties {
        autoCopy?: boolean;
        cardinality?: "ONE_ONE" | "MANY_ONE" | "ONE_MANY" | "MANY_MANY";
        columnSpan?: number;
        deprecated?: boolean;
        fieldControlFieldTopId?: string;
        fieldControlType?:
            | "NORMAL"
            | "HIDDEN_DEFAULT"
            | "READONLY_DEFAULT"
            | "SMART_HIDE"
            | "READONLY_WHEN_COMPLETED"
            | "CUSTOM";
        fieldControlValue?: string;
        fieldControlView?: "READONLY"
        | "HIDDEN";
        formatType: string;
        frozen?: boolean;
        helpText?: string;
        hiddenFromSupers?: boolean;
        label?: string;
        longLabel?: boolean;
        name: string;
        neverHideHelpText?: boolean;
        popupHint?: boolean;
        relatedDisplayFieldId?: string;
        relatedEntryLookupId?: string;
        relatedFormId: string;
        relatedRecordLookupId?: string;
        reportLabel?: string;
        required?: boolean;
        rightLabelFalse?: string;
        rightLabelTrue?: string;
        typeScriptDeclarations?: string;
        userUpdateable?: boolean;
    }

    Hierarchy (View Summary)

    Index
    autoCopy?: boolean

    Whether to automatically copy this field's value when cloning a record

    cardinality?: "ONE_ONE" | "MANY_ONE" | "ONE_MANY" | "MANY_MANY"

    ONE_ONE (Selectable Once: an entry linked by one entry of this form is offered to no other) or MANY_ONE (no selection limit); any other cardinality is refused. Defaults to MANY_ONE on create. A switch to ONE_ONE is refused while any entry is linked by more than one entry of this form.

    columnSpan?: number

    How many of its row's columns this field spans: 0 for the whole row, 1-4 for that many columns. An explicit null clears it, leaving the field type's default placement. Read by layout clients; legacy form pages do not apply it.

    deprecated?: boolean

    Whether this field is deprecated and hidden from new configurations

    fieldControlFieldTopId?: string

    ID of the field a CUSTOM fieldControlType watches: another checkbox, radio, signature or single-select field on the same form. Null or an empty ID removes it.

    fieldControlType?:
        | "NORMAL"
        | "HIDDEN_DEFAULT"
        | "READONLY_DEFAULT"
        | "SMART_HIDE"
        | "READONLY_WHEN_COMPLETED"
        | "CUSTOM"

    Visibility/editability control mode for this field

    fieldControlValue?: string

    The watched field's value at which a CUSTOM fieldControlType applies: true or false for a checkbox or radio, signed or unsigned for a signature, one of its option IDs for a single-select (an empty string, accepted for legacy compatibility, stores no value).

    fieldControlView?: "READONLY" | "HIDDEN"

    What a CUSTOM fieldControlType does to this field while its condition holds. A header, spacer, static content or merge report field can only be HIDDEN, which writing its condition stores.

    formatType: string

    Cross-Record (offers entries of the records a record lookup lists) or Intrarecord (offers the record's own entries); the constant names CROSS_RECORD and INTRARECORD are accepted too. Required on create and fixed afterwards.

    frozen?: boolean

    Whether this field is frozen (built-in). Only a super user can set or clear it. While it is set, only a super user can edit the field, unless a custom lock names who can, and no one can delete it directly, super users included.

    helpText?: string

    Help text displayed below or beside the field

    hiddenFromSupers?: boolean

    Whether this field is hidden from parent/supervisor unit views

    label?: string

    Display label shown to users on the form

    longLabel?: boolean

    Whether the label spans the full width above the field instead of beside it

    name: string

    Field name.

    neverHideHelpText?: boolean

    Whether to always show help text (never collapse it)

    popupHint?: boolean

    Whether to show help text as a popup tooltip instead of inline

    relatedDisplayFieldId?: string

    topId of a field of the related form whose value labels a linked entry; not a Secret field. Required when the related form is multi-entry; for a single-entry form an absent one labels an entry by its record's name. Not used by an Intrarecord link to a single-entry form, which shows rightLabelTrue/rightLabelFalse. An empty string or an explicit null clears it.

    relatedEntryLookupId?: string

    topId of one of the related form's multi-entry reports, narrowing which of its entries the link offers; absent offers them all. Refused when the related form is single-entry. An empty string or an explicit null clears it.

    relatedFormId: string

    topId of the form whose entries this link offers. Required: a link that points at no form cannot be stored. Fixed once the field is created.

    relatedRecordLookupId?: string

    topId of a query listing the records whose entries the link offers; its record types must be able to have the related form. Its presence is what makes a link Cross-Record, so it is required when formatType is Cross-Record and refused when it is Intrarecord. An empty string or an explicit null clears it.

    reportLabel?: string

    Alternate label used in reports and exports

    required?: boolean

    Whether this field must have a value before the record can be saved

    rightLabelFalse?: string

    The label shown while the link is not made. Applies only to an Intrarecord link to a single-entry form; optional there.

    rightLabelTrue?: string

    The label shown while the link is made. Applies only to an Intrarecord link to a single-entry form, where it is required; every other shape labels the linked entry by its display field or record name.

    typeScriptDeclarations?: string

    Type script declarations

    userUpdateable?: boolean

    Whether end users can edit this field value (false = system-managed)