Project

General

Profile

Actions

Feature #83788

open

FormEngine and accent/special characters

Added by Yohann CERDAN about 6 years ago. Updated about 6 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 #1

Updated by Oliver Hader about 6 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".

Actions #2

Updated by Yohann CERDAN about 6 years ago

Ok.

Is there any method to replace the FormEngine.js include in backend to add a custom one (in a clean way)?

Actions

Also available in: Atom PDF