#83788FormEngine and accent/special characters
Description
Hi,
I use a form in TCA with the type “select -> selectMultipleSideBySide” and “suggest”. It display the two multiple select with the suggest field.In this mode, it doesn’t use the ajax call but the javascript
FormEngine.SelectBoxFilter.filterin the “FormEngine.js”.
But the function “FormEngine.SelectBoxFilter.filter” doesn’t convert the words with accent or special characters. Its a “strict” search made with
var matchFilter = new RegExp(filterText, 'i');
For example, if i write “crem…” i want to list the items starting with “crèm…”.
The solution is to clean the “filterText” before calling the “new RegExp” to convert the special characters.
Reviews 2
Related issues 1
Files 1
History 914
-
Oliver Hader commented and changed tracker
BugFeature priorityMust haveShould have Complexityeasyhard 02/07/18, 11:47 -
Yohann CERDAN commented 02/07/18, 14:28
Ok.
Is there any method to replace the FormEngine.js include in backend to add a custom one (in a clean way)?
-
Jean-Pierre Roy commented 01/28/25, 18:41
Hi, seven years later, is there now a clean way to override the filter in SelectBoxFilter? Thank you!
-
Georg Ringer commented and changed Sprint Focus On Location Sprint 04/18/25, 10:29
one solution could be to simplify the value and save it in a data attribute and use that for the filter
-
Oliver Bartsch commented and changed attached multi-select-filter.mov 09/30/25, 07:25
I also encountered a bug, which is attributable to this filter functionality. See added video.
-
Oliver Bartsch changed Related to #107565 09/30/25, 07:57
-
Oliver Bartsch commented 09/30/25, 07:57
Oliver Bartsch wrote in #note-5:
> I also encountered a bug, which is attributable to this filter functionality. See added video.I’ve created a extra issue for this, see #107565.
-
Georg Ringer changed Sprint Focus
On Location Sprint08/06/26, 15:45 -
Gerrit Code Review pushed patch set 1 for main to change 95325 status
NewUnder Review 08/13/26, 19:17 -
Gerrit Code Review pushed patch set 2 for main to change 95325 08/14/26, 22:23
-
Gerrit Code Review pushed patch set 3 for main to change 95325 08/28/26, 10:42
-
Gerrit Code Review pushed patch set 4 for main to change 95325 09/01/26, 08:22
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 95524 09/01/26, 19:15
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % 09/01/26, 19:30Applied in changeset commit:550c85428ae5a672f7f71d704977f5087e17dfe0.
The requested transliteration to ASCII has to be done on both server and client side. For western languages that seems to be easy, however a generic framework approach is much more difficult to achieve.
JS examples: http://andyhu.github.io/transliteration/ & https://github.com/andyhu/transliteration
This this involves a lot of more changes, I’ve modified the complexity from “easy” to “hard”, the scope to be a “feature” instead of a “bug fix” and also the priority to “should have” instead of “must have”.