ListFormCascadingLookup
@spartanfx/react / spfx / ListFormCascadingLookup
Variable: ListFormCascadingLookup
const ListFormCascadingLookup: React.FunctionComponent<IListFormFieldCascadingLookupProps>;
ListFormCascadingLookup is a React component that renders a SharePoint Lookup field with cascading and search support.
Features:
- Supports multi-select and single-select SharePoint lookup fields
- Dynamically loads options based on a related (cascading) field's selected value
- Optionally restricts values based on
allowedValues - Uses Fluent UI Dropdown with support for "Select All", search, and custom options
- Handles paging via CAML query when querying SharePoint lists
- Supports maximum selection limits with visual feedback
- Supports a separate display field decoupled from the SharePoint LookupField
- Supports disabling options via a predicate, with control over filtering vs. rendering as disabled
- Supports restricting the queried fields via
restrictFields
Param
props
Component properties of type IListFormFieldCascadingLookupProps
Returns
A rendered dropdown or spinner, depending on loading state
Remarks
Useful when implementing dependent lookup fields in SharePoint custom forms.