Special characters

Avatar

Avatar

andersons205830

Avatar

andersons205830

andersons205830

12-12-2017

Hello.

I would like to do a conversion of some special characters.

Example: I type "ç, ã, á" in the text field and after that happens the conversation for "c, a, a".

Does anyone know any script?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

386

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

386

Correct Answer

485
radzmar
MVP

12-12-2017

In the change event of the field add the following JavaScript:

xfa.event.change = xfa.event.change.replace(/[ãá]/g, "a").replace(/[ç]/g, "c");

Answers (1)

Answers (1)

Avatar

Avatar

andersons205830

Avatar

andersons205830

andersons205830

12-12-2017

I really appreciate radzmar.
You always sharing your knowledge.

It works like a charm.

Thanks a lot.