Components
Components

Record picker

Tag: <we-record-picker>
Standard module: we_record_picker

Searches records by object and returns a selected record. It can narrow results with a field/operator/value filter.

Features

  • Searches one or more objects and resolves selected labels.
  • Supports two optional field filters and emits recordchange when a record is chosen or cleared.
  • For ordinary objects, respectAccess="true" uses request object and record access; the default lookup path bypasses those checks.

Public parameters

JavaScript property HTML attribute Type Initial value Purpose
placeholder placeholder String — Text shown before a value is selected.
filterField filter-field String "" First field used to constrain search results.
filterOperator filter-operator String "equals" Comparison operator for the first filter.
filterValue filter-value String "" Value for the first filter.
filter2Field filter2-field String "" Optional second filter field.
filter2Operator filter2-operator String "equals" Comparison operator for the second filter.
filter2Value filter2-value String "" Value for the second filter.
respectAccess respect-access Boolean false Use request object and record access for ordinary-object search and label lookup.
label label String '' Text label shown to the user.
required required Boolean false Whether the value is required.
disabled disabled Boolean false Whether interaction is disabled.
fieldValue field-value String — Current field value.
objectName object-name String or Array — One object API name or a list of object API names.
displayField display-field String — Field used as the selected record label.

Public methods

No @apiFunction methods are declared.

Events

  • recordchange is emitted as a DOM custom event.

Source: working/environment_modules/standard/we_record_picker/WebComponent/WeRecordPicker.js.

All components