Support Article
Truncated text with max characters in text area
SA-31358
Summary
Text area on the screen with Max Characters as 1800.
User enters the text (which includes new lines), and system allows to enters the text but while saving it truncates the characters at the end.
Also the behavior is different in Internet Explorer, Firefox, Chrome.
Error Messages
Not Applicable
Steps to Reproduce
1) Include a text area in UI with Max length as 1800.
2) Enter text of length 1800 with new lines and save.
3) Observe that the text gets truncated from the end.
Root Cause
In case of Internet Explorer 11 and Firefox browse, when entering text in the text area, one can see that the Internet Explorer and Firefox takes one character for an enter key, and at the time of processing it takes 2 bytes.
In case of Chrome:
When entering text in the text area, we see that chrome takes two character for an enter key, and at the time of processing also it takes 2 bytes.
Resolution
Apply HFix-30750.
This HFix resolves the issue in Chrome but not in Internet Explorer and FireFox, as they are browser default behavior which cannot be handled by Pega.
Published March 16, 2017 - 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.