I am looking for something to only show with an exact match of text but have been unable to achieve this.
For example if ‘Tag1’ is ‘Big fat horse’ then I only want the list of adverts to show if someone types ‘Big fat horse’. Although it does diplay if the searchbox contains that phrase it also displays if the search box only contains one of the words such as ‘fat’ which is not what I’m looking for. Can anyone advise how to resolve this please? I’ve had a look through the forum but can’t seem to find the answer.
Looks like it does exactly what you configures it for
You used the operator “contains”, which checks if the tag contains the string you typed, which is not what you need.
If you need an exact match - try using the “is” operator here.
You might need to filter the results of the list to make an is/is not comparison, since the list will not allow to be compared to a single record.
Meaning, apply :filtered operator with the search value in your filter criteria, then probably :first item (since the result is still going to be a list, even if it’s a single element in that list) and then do the “is searchbox value” comparison.
Hope this helps
Hi,
Thanks for the response. I’m still struggling to be honest. I’ve tried the ‘is’ as below but the same issue - I search for ‘fat’ and it still displays.
I tried adding a filter but this just stays as red so I’m obviously doing something wrong. Any ideas what please?
Thanks
John
This topic was automatically closed after 70 days. New replies are no longer allowed.