@servicenow/sdk - v4.7.0
    Preparing search index...

    Interface SingleLineTextVariableType<Type, Default>

    interface SingleLineTextVariableType<
        Type extends string = string,
        Default extends Type = Type,
    > {
        __type__?: Type;
        active?: boolean;
        alwaysExpand?: boolean;
        attributes?: string;
        category?: string;
        conversationalLabel?: string;
        createRoles?: (string | Role)[];
        defaultValue?: string | Default;
        deliveryPlan?: string;
        dependentQuestion?: string;
        description?: string;
        disableInitialSlotFill?: boolean;
        dotWalkPath?: string;
        exampleText?: string;
        field?: string;
        global?: boolean;
        helpTag?: string;
        helpText?: string;
        hidden?: boolean;
        instructions?: string;
        layout?: "normal" | "2across" | "2down";
        mandatory?: boolean;
        mapToField?: boolean;
        order?: number;
        postInsertScript?: string;
        pricingDetails?: PricingDetail[];
        pricingImplications?: boolean;
        question: string;
        readOnly?: boolean;
        readRoles?: (string | Role)[];
        readScript?: string;
        removeFromConversationalInterfaces?: boolean;
        showHelp?: boolean;
        tooltip?: string;
        unique?: boolean;
        useDynamicDefault?: boolean;
        validateRegex?: string | Record<"question_regex">;
        visibility?: "Bundle" | "Always" | "Standalone";
        visibleBundle?: boolean;
        visibleGuide?: boolean;
        visibleStandalone?: boolean;
        visibleSummary?: boolean;
        width?: 100 | 50 | 25 | 75;
        writeRoles?: (string | Role)[];
    }

    Type Parameters

    • Type extends string = string
    • Default extends Type = Type
    Index

    Properties

    __type__?: Type
    active?: boolean
    alwaysExpand?: boolean

    Always expand

    attributes?: string

    Attributes of the variable

    category?: string

    Category

    conversationalLabel?: string
    createRoles?: (string | Role)[]
    defaultValue?: string | Default
    deliveryPlan?: string

    Delivery plan

    dependentQuestion?: string

    Dependent question for dynamic default value

    description?: string

    Description

    disableInitialSlotFill?: boolean
    dotWalkPath?: string

    Dot walk path for dynamic default value

    exampleText?: string
    field?: string

    Field to map (required when mapToField is true)

    global?: boolean

    Global

    helpTag?: string
    helpText?: string
    hidden?: boolean

    Indicates whether the field is hidden. Cannot be true when mandatory is true.

    instructions?: string
    layout?: "normal" | "2across" | "2down"

    Layout style for the container

    mandatory?: boolean

    Indicates whether the field must contain a value. Cannot be true when hidden or readOnly is true.

    mapToField?: boolean

    Map to field

    order?: number

    Order in which the variable appears

    postInsertScript?: string

    Post insert script

    pricingDetails?: PricingDetail[]

    Pricing details

    pricingImplications?: boolean

    Pricing implications

    question: string
    readOnly?: boolean

    Indicates whether the field is read-only. Cannot be true when mandatory is true.

    readRoles?: (string | Role)[]
    readScript?: string

    Read script

    removeFromConversationalInterfaces?: boolean

    Remove from Conversational Interfaces

    showHelp?: boolean
    tooltip?: string
    unique?: boolean

    Unique value

    useDynamicDefault?: boolean

    Use dynamic default

    validateRegex?: string | Record<"question_regex">

    Whether to validate the regex expression pattern

    visibility?: "Bundle" | "Always" | "Standalone"

    Visibility

    visibleBundle?: boolean
    visibleGuide?: boolean

    Indicates whether the variable is visible in guides

    visibleStandalone?: boolean

    Indicates whether the variable is visible when standalone

    visibleSummary?: boolean

    Indicates whether the variable is visible in summaries

    width?: 100 | 50 | 25 | 75

    Width of the variable

    writeRoles?: (string | Role)[]