diff --git a/backend/forms.md b/backend/forms.md index 090b7bf4..6774e885 100644 --- a/backend/forms.md +++ b/backend/forms.md @@ -1167,7 +1167,7 @@ Option | Description `list` | a configuration array or reference to a list column definition file, see [list columns](lists#available-column-types). `recordsPerPage` | records to display per page, use 0 for no pages. Default: 10 `conditions` | specifies a raw where query statement to apply to the list model query. -`scope` | specifies a [query scope method](../database/model#query-scopes) defined in the **related form model** to apply to the list query always. The first argument will contain the model that the widget will be attaching its value to, i.e. the parent model. +`scope` | specifies a [query scope method](../database/model#query-scopes) defined in the **related form model** to apply to the list query always. The first argument will contain the model that the widget will be attaching its value to, i.e. the parent model. The second argument will contain the parent form current values. `searchMode` | defines the search strategy to either contain all words, any word or exact phrase. Supported options: all, any, exact. Default: `all`. `searchScope` | specifies a [query scope method](../database/model#query-scopes) defined in the **related form model** to apply to the search query, the first argument will contain the search term. `useRelation` | Flag for using the name of the field as a relation name to interact with directly on the parent model. Default: `true`. Set to `false` in order to bypass the relationship logic and only store and retrieve the selected record using its primary key. Best suited for use in [`jsonable` attributes](../database/model#values-stored-as-json) or where the relationship is unabled to be loaded. **NOTE:** When this is disabled the field name **MUST** be the actual name of the field where the value will be stored / retrieved, it cannot be the name of a relationship.