Project

General

Profile

Actions

Feature #83788

open

FormEngine and accent/special characters

Added by Yohann CERDAN almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2018-02-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.1
Tags:
formengine
Complexity:
hard
Sprint Focus:

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.

Actions

Also available in: Atom PDF