Skip to content

LookupSource

Where a Lookup field’s options come from while the respondent types. EbitexForm supplies one that calls the form’s own public endpoint, so an embedded form needs nothing from you; pass your own as the lookup prop to route searches elsewhere (a proxy of yours, or a fake in a test).

Reject (or throw) when the search cannot be made: the field then falls back to a plain text input, which is always a usable way to answer. Honour signal: it fires when the respondent keeps typing.

search(field, query, signal): Promise<ChoiceOption[]>

string

string

AbortSignal

Promise<ChoiceOption[]>