Feature #83788
openFormEngine and accent/special characters
0%
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.
Updated by Oliver Hader almost 7 years ago
- Tracker changed from Bug to Feature
- Priority changed from Must have to Should have
- Complexity changed from easy to hard
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".
Updated by Yohann CERDAN almost 7 years ago
Ok.
Is there any method to replace the FormEngine.js include in backend to add a custom one (in a clean way)?