Support Article
For New line, character count increments by 1 instead of 2
SA-13213
Summary
For New line, the character count increments by 1 instead of 2.
Character count is displayed in the Text Area when setting the Display Character Counter in Presentation Tab to True. When entering a new line in windows system, it is \r\n and in Unix system, it is \n. In this text area, when entering a new line (by pressing Enter key) the character count is increasing by 1, though it is a 2 character. This misleads users by displaying that there are characters remaining though no characters remain.
Error Messages
Not Applicable
Steps to Reproduce
1. Add a text area to a section
2. Configure the text area to represent the remaining character length, in the presentation tab of the text area properties
3. Run the flow and enter the characters
Root Cause
The root cause of this problem is in a third-party product, chromium.
To recreate it outside PRPC:
http://jsfiddle.net/Qw6vz/1/

Resolution
This is not an issue with Pega, but with the chromium.
Published August 26, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.