Issue Feature Resolved

#83788FormEngine and accent/special characters

Yohann CERDAN 02/06/18, 15:31 updated 09/01/26, 19:30

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.filter
in 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

Files 1

History 914

  1. Oliver Hader commented and changed tracker Bug Feature priority Must have Should have Complexity easy hard 02/07/18, 11:47

    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”.

  2. 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)?

  3. 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!

  4. 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

  5. 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.

  6. Oliver Bartsch changed Related to #107565 09/30/25, 07:57

  7. 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.

  8. Georg Ringer changed Sprint Focus On Location Sprint 08/06/26, 15:45

  9. Gerrit Code Review pushed patch set 1 for main to change 95325 status New Under Review 08/13/26, 19:17

  10. Gerrit Code Review pushed patch set 2 for main to change 95325 08/14/26, 22:23

  11. Gerrit Code Review pushed patch set 3 for main to change 95325 08/28/26, 10:42

  12. Gerrit Code Review pushed patch set 4 for main to change 95325 09/01/26, 08:22

  13. Gerrit Code Review pushed patch set 1 for 14.3 to change 95524 09/01/26, 19:15

  14. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 09/01/26, 19:30

    Applied in changeset commit:550c85428ae5a672f7f71d704977f5087e17dfe0.