a lookup-field "User" pointing to the (calculated) field "FriendlyName"
a lookup-field "User_Txt" pointing to the (txt) field "FriendlyName_Txt"
Now the strange thing is that the Plumsail lookup-field interface does NOT work with "User":
if you type in something, the lookup field, it should act as a search box and filter the options in the dropdown, but this doesn't work at all:
creating a custom displaytemplate As an option, you can change the field from which the lookup field is getting value and set up view results for the lookup field. You can find the instructions here: https://plumsail.com/docs/forms-sp/how-to/lookup-view.html
I tested this, but the search-functionality only works on the primary field of your lookup. So if you add extra fields, they are NOT searchable, even if they are displayed in the custom display template.
create a custom filter
It's something that can help and is a value tip (thanx @mnikitina !), but this has other behavior.
In the sample provided, you search in all the individual fields.
But I want to look for an item were the concatenated value is someting like your searchterm, than you don't get results.
i.e.
My concatenated field is "Lastname Firstname"
and I want to search specific for "Lastname Firstn*"
This can be done by searching in the contactenated field, but not if you search in the individual fields "Lastname" OR "Firstname" as none of them contains the searchterm...
So in that case, I think the only thing you can do is download all the fields, create a new array with the concatenated value and do a find in this array.
However, this is not a good idea for large lists as you have to get all your items first....
It would be an added value if the internal logic for a lookupfield was done with a CAML filter instead of the api that does not allow filtering on calculated fields:
I would like to help you, but what is the main goal?
To have a dropdown where you can fill in letters and should that work as search bar?
What about - on source list - to use Power Automate flow to check if a new or edited item has been aded/edited and run it. In the Power Automate flow concatenate what you need and insert it to the Text Field in SharePoint column?
I am not sure what your goal is
If you can explain it more, I will probably help you to find a way how to solve this issue.
I understand a bit more right now
The goal is to have a TXT field which should serve as a Search Bar and when you write down a letter "d" somehow down under this TXT field vLookup column should only show you records that meets the requirements - vLookup (calculated column) contains "d" or start With?
Hmm, I am thinking. I tried something on my side.
I have a Title column named by a city "Prague" and when I create a new calculated column with this formula
=[Title]
It shows me the same value - what is basically correct.
Send query to get all items (I do not know how many of them you have) and store them in Object and work with these data afterwards when "TXT field" is changed and some letter is being wrote down, execute the script
That's basically what a standard lookupfield in Plumsail already does when you start typing in it.Just check the network traffice in the devtools of your browser. If you type something in a lookup field, you will see appear something like:
So my suggestion was that the source code of Plumsail maybe could be modified in a way that the out-of-the box query that is made when you type something in a lookupfield is altered and that is uses the CAML query in stead of the standard api that is used now.
This would be an "upgrade" of the functionalities of a standaard lookupfield, and than there is no need to add an extra "search box".
I think sometimes looking for workarounds is just job that must be done.
Anytime I cannot figure out some situations, I am looking up the "workaround" because no solution exists. And I always find a path how to handle critical or difficult scenarios.
Yes, and I love it, that's why I love designing in Plumsail Designer with SharePoint