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

    Function SelectBoxVariable

    • A CatalogItem variable for a select box field.

      Parameters

      • config: SelectBoxVariableType

        Configuration for the select box variable including:

        • question - Question text displayed to the user
        • choiceTable - Table containing choices for the select box
        • choiceField - Field containing choices for the select box
        • choices - Choices for the select box as key-value pairs with labels
        • includeNone? - Whether to include a "None" option
        • defaultValue? - Default value for the variable
        • And all other properties from the base Variable type

      Returns SelectBoxVariableType<
          ExtendedChoices,
          string
          | number,
          string | number,
          keyof Tables,
      >