Space padded Search Values
-
Hi Roland,
The when a user enters a serch term and the search term is padded with a space (‘ ‘) character, the results will not match the database entry.
From a technical perspective this is correct behaviour but the user percieves as incorrect.As an example in your demo search on this page: https://xnau.com/work/wordpress-plugins/participants-database/list-participants/ if the user selects ‘City’ as the search field and ‘San Diego’ as the value, a match will be displayed.
However if user enters ‘San Diego ‘ there will be no matches.This issue occurs quite often because the autocorrect/autofill feature on many phone keyboards appends a space (‘ ‘) after inserting the word entered. The result is that if the user uses the autocorrect/autofill to enter the search value, most often they will not find what they are looking for.
Would it make sense to trim the search value for blanks prior to seeing if there is a match?
Alternatively, is there a hook which I can intercept what the user has entered so I can do something similar?
Thanks,
The topic ‘Space padded Search Values’ is closed to new replies.