Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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.