PowerApps Component framework (PCF) Control that renders a lookup field as a dropdown
IMPORTANT : The control needs to be configured using the Classic UI see issue #29 for more info
UPDATE 2022-01-20 : PLEASE USE v1.0.0.2 or above, a ๐ was found in earlier versions
Blog posts :
-
https://itmustbecode.com/better-ux-with-a-lookup-dropdown-pcf-control/
-
https://itmustbecode.com/related-record-filtering-with-the-lookup-dropdown-pcf/
-
Download latest version here : https://github.com/drivardxrm/LookupDropdown.PCF/releases/latest
- Will honour the default view filtering and ordering that is set in the field properties of the form.
-
Show the record 'Primary Image' field.
-
Customize the records display text with text fields other than the 'Primary Name' field.
- Support for Related Record Filtering (cascading)
FluentUI : https://github.com/microsoft/fluentui
react-query : https://react-query.tanstack.com/
Parameter | Description | Default |
---|---|---|
lookupfield | REQUIRED: Bound Lookup field to render as dropdown | |
customtext | OPTIONAL: Customize display text with any text attributes of the record. put attribute schema names between brackets {}. Ex. {new_firstname} {new_lastname}. Leave blank to show record primaryname. Support multiple language using the format LANGUAGECODE1##{attrib1lang1} {attrib2lang1}__LANGUAGECODE2##{attrib1lang2} {attrib1lang2} ex: 1033##{new_nameen}__1036##{new_namefr} | |
customselecttext | OPTIONAL: Custom text for dropdown selector text (default = Select) | |
dependentlookupfield | OPTIONAL: Dependent Lookup field. Use when Related Records Filtering is set on the Field Properties | |
showRecordImage | Show the record image beside the text | false |
showOpenRecordButton | Show a button next to the dropdown to open the selected record form. | false |
sortByTextValue | Sort the dropdown list by the displayed text value instead of the default lookup view sorting order. | false |
You can install the component directly from solution files contained in the 'Release' section https://github.com/drivardxrm/LookupDropdown.PCF/releases/latest