Skip to main content
Version: 1.0.0

ListFormMultiChoice

@spartanfx/react v1.0.0


@spartanfx/react / ListFormMultiChoice

Variable: ListFormMultiChoice

const ListFormMultiChoice: React.FunctionComponent<IListFormFieldRendererProps>

ListFormMultiChoice is a React component for rendering a SharePoint MultiChoice field in a list form, supporting multiple selection with a "Select All" option and visual tokens.

This component integrates with the SharePoint list form context to bind user-selected choices to the form state.

Param

Props conforming to IListFormFieldRendererProps

Returns

A Fluent UI Dropdown configured for multi-choice functionality

Remarks

  • Uses props.field.Choices to populate options.
  • Form state is updated via listFormContext.formState.set.
  • Selected choices are displayed as removable visual tokens.
  • Provides a custom "Select All" checkbox within the dropdown.