Skip to main content
annad7195
June 10, 2024
Question

Character Limit Count in Text Field

  • June 10, 2024
  • 8 replies
  • 0 views

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?

    8 replies

    daniell
    Participating Frequently
    June 10, 2024

    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

    annad7195
    annad7195Author
    June 10, 2024

    Okay, great, thanks, I will try it!