The Unofficial Lookup component from the unofficial Salesforce site is one of my favorite components. It allows you to add a powerful search component to your screen flow. However, the component is one of the oldest on the site, and some very picky users in my organization kept asking me, "Why are the icons not aligned correctly?" during user acceptance testing. Therefore, I decided it could use a new layer of paint.
What was changed?
Used lightning design system to format the search box
Used lightning design system to format the search results
Used lightning design system to format the selected results
Added the ability to add icons
The Results
Go from this
To this
Now it's your turn!
Log into a sandbox or developer org
Install the latest version of the unofficial Lookup component
Open the developer console
Open the files below, and update them with the code below
Have you tried the new version I put in the repository? It fixed the issue for Josh.
Chris - this looks like the same issue I am experiencing. I'm glad to try and help track this down. Have you done a diffchecker.com comparison of between each of the code pieces in your org and what is in the source repository yet?
Josh, do you mind emailing me at chris@professorflow.com with more details so I can try to reproduce this issue?
This is pretty awesome but I can't get it to work I use the original in quite a few flows. I copied and pasted the code above directly into the developer console in my sandbox but I am not returning anything in my search in debug the design is populating just no lookup..
Okay, I removed the new placeholder. The original component used placeholder differently from how I use placeholders. It uses it to set a pre-search essentially. For this, I prefer to set the output value with the record Id so it is pre-populated with a selection.