Expand my Community achievements bar.

SOLVED

Special characters

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

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

Avatar

Level 2

I really appreciate radzmar.
You always sharing your knowledge.

It works like a charm.

Thanks a lot.