- class sym.sdk.forms.FieldOption(*, value: Any = None, label: sym.sdk.forms.ConstrainedStrValue)¶
An option to display in a drop-down menu. FieldOptions represent value-label pairs to use in drop-down menus. They may be returned by Prefetch Reducers to dynamically generate a list of options for Prompt Fields with prefetch = true.
They are also used in
PromptFieldobjects to represent the selected drop-down value as well as the list of selectable options for that field.
- field label: str [Required]¶
A short label, no more than 55 characters, to display in the drop-down menu.
This label will be used to filter the options to display when a requester types into an input box.
maxLength = 55
- validator validate_value_length » value¶
Validates that the given value will not exceed Slack-imposed length limits.