Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

TextArea control incorrect remaining character count



TextArea 'Remaining character count' is incorrect when carriage returns are present in the TextArea data.

Error Messages

Not Applicable

Steps to Reproduce

  1. Configure a TextArea control to display character count.
  2. In the TextArea, copy or enter data that also includes carriage returns.
  3. Delete a character from the textarea. The remaining count does not display as 1 and displays 0 instead. It continues to display 0 until backspace is pressed equal to the number of carriage returns present in the data. Now, the remaining character count changes from 0 to 1.

Root Cause

A defect in Pegasystems’ code or rules.
The updateTextAndCounter function in the PZPEGA_CONTROL_TEXTAREA control calculated incorrectly the newline characters or carriage returns present in the data.


Apply HFix-54226.

Published August 15, 2019 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us