Detailed Description - Incorrect counting of characters in text area in Chrome. We have different values of characters inside text area and PEGA default counter for Text Area in Chrome just in cases when we use newline character.
Steps to reproduce -
Add control "text area" to section
Open properties of control
On presentation tab restrict max characters to 10(as example)
Make "true" checkbox for Display character counter
Than in application use 8 characters and one newline characters
Counter below textarea will show message "Remaining: 1 characters" but we can't input any symbols in text area
Any error messages - we don't have any error messages
May I know the Pega version used at your end. Is the reported behavior observed with IE? Also, could you complete the sentence in attempted solution. I see you have referred as 'But after....', followed by a screenshot.
I have added missing text after "but after" )) I use Pega 7.1.9
In IE everything works well. The problem is that The text area control uses browser-based code to determine behavior. In Chrome, the newline character is considered as two characters. The Pega text area character counter considers the newline character to be a single character. Your link didnt help, there is just explanation how to use it
I could see the reported behavior(displaying "Remaining: 1 characters" on using new-line after entering 8th character in the textarea) on enabling/checking 'Wrap text' under Presentation tab of Cell properties for text area control. On disabling this option, entering new-line after 8th character in the textarea, I see the message as 'Remaining: 0 character'. Refer the attached screenshot for your quick reference.
I think you have checked this option. If yes, could you test the behavior on disabling/unchecking 'Wrap text' and let me know the update.
PS: My observation is from Pega 7.1.9 without attempted solution as you mentioned.