addPreSearch (Client API reference)

Applies changes to lookups based on values current just as the user is about to view results for the lookup.

Control types supported

Lookup

Syntax

formContext.getControl(arg).addPreSearch(myFunction)

Parameters

Name Type Required Description
myFunction Function Yes The function that will be run just before the search to provide results for a lookup occurs. You can use this function to call one of the other lookup control functions and improve the results to be displayed in the lookup. The execution context is automatically passed as the first parameter to this function.

PreSearch event

removePreSearch