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 <span data-processor="relativetime" data-value="2018-02-07T11:47:28+00:00" > 02/07/18, 11:47 </span>

    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 <span data-processor="relativetime" data-value="2018-02-07T14:28:14+00:00" > 02/07/18, 14:28 </span>

    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 <span data-processor="relativetime" data-value="2025-01-28T18:41:03+00:00" > 01/28/25, 18:41 </span>

    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 <span data-processor="relativetime" data-value="2025-04-18T10:29:12+00:00" > 04/18/25, 10:29 </span>

    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 <span data-processor="relativetime" data-value="2025-09-30T07:25:29+00:00" > 09/30/25, 07:25 </span>

    I also encountered a bug, which is attributable to this filter functionality. See added video.

  6. Oliver Bartsch commented <span data-processor="relativetime" data-value="2025-09-30T07:57:34+00:00" > 09/30/25, 07:57 </span>

    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.

  7. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-01T19:30:09+00:00" > 09/01/26, 19:30 </span>

    Applied in changeset commit:550c85428ae5a672f7f71d704977f5087e17dfe0.