We're having some trouble with the max.length count property of the Appway textarea component. If the last character of the text area is a newline character, this actually allows the total count to exceed the specified maximum value. For newline characters entered anywhere other than the last character, this is still OK.
e.g. if the max. length = 5 for a text area
Entering "Fi\nre" stops me from entering the last character
Entering "Fire\n" exceeds the length (and subsequently throws an exception during the database call for a char length breach)
We're currently running on a windows server, so this may have something to do with how it converts newline characters into two characters instead of the one that NIX uses. However it seems strange that the previous newline characters are counted correctly but the last is not.
The current version of Appway we're using is 5.3.5. Would there be any workaround other than just reducing the length or performing a manual check?
We're having some trouble with the max.length count property of the Appway textarea component. If the last character of the text area is a newline character, this actually allows the total count to exceed the specified maximum value. For newline characters entered anywhere other than the last character, this is still OK.
e.g. if the max. length = 5 for a text area
Entering "Fi\nre" stops me from entering the last character
Entering "Fire\n" exceeds the length (and subsequently throws an exception during the database call for a char length breach)
We're currently running on a windows server, so this may have something to do with how it converts newline characters into two characters instead of the one that NIX uses. However it seems strange that the previous newline characters are counted correctly but the last is not.
The current version of Appway we're using is 5.3.5. Would there be any workaround other than just reducing the length or performing a manual check?
Thanks,
Al