Character Limit Count in Text Field

I have a text field in an interface and I have defined a character limit of 40. I need to be able to type both English and Greek characters in the field. When I write in Greek, the character limit count shows the double number of characters I actually type, so even if I type one character it shows 2/40. In English, it works properly. I think it is caused by the encoding, but I don’t know and can’t find any documentation on how to fix it. Is there a way to fix this problem? Maybe to configure the app so it reads all Unicode characters with UTF-8? Or is the problem somewhere else?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    The characterLimit description reads "characterLimit (Number (Integer)): Determines the maximum number of characters. Depending on the language, some characters may count as more than one."

    It looks like fn!len() might count the character lengths as 1 instead of 2, so your best bet may be to write your own character limit validation using fn!len() instead of using the built-in characterLimit parameter

Reply
  • 0
    Certified Lead Developer

    The characterLimit description reads "characterLimit (Number (Integer)): Determines the maximum number of characters. Depending on the language, some characters may count as more than one."

    It looks like fn!len() might count the character lengths as 1 instead of 2, so your best bet may be to write your own character limit validation using fn!len() instead of using the built-in characterLimit parameter

Children