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

Text area control is not working as expected



The user has upgraded from PRPC 6.2 SP2 to Pega 7.1.6. 

Text area should always be expanded, displaying all the contents in read-only mode. Since the same is not feasible with the upgraded pxtextarea control, user is using deprecated control. 

On loading the application, the control's icon is in expanded mode but the text area is collapsed. After collapsing and expanding the icon again, the functionality runs correctly. 

The functionality of the control breaks only the first time.

Error Messages

Not Applicable

Steps to Reproduce

1. Create a flow having section with tab layouts. 
2. Configure a text area control as read-only mode in the second tab layout. This control should display a huge value. 
3. The textarea control should have ExpandedWithIcon option. 
4. Create an R-A-P of the flow and import it.
5. Run the flow.

Root Cause

The root cause is that the Textarea control is hidden in the non-active tab and the initialization of the text area is failing in pega.ui.textarea.resizeTextArea function.


Since the TextArea control is hidden in the non-active tab, adding the below code in UserWorkForm rule helps in initializing the TextArea control by navigating to all tabs and resizing the TextArea control.

<script type="text/javascript"> 
if (typeof(resizeAllExpandedTextAreas) == 'function') { 
if (typeof(harness) != 'undefined') { 
harness.attachOnload(resizeAllExpandedTextAreas, true); 
} else { 
if (typeof(pega) == "object" && typeof(pega.u) == "object" && typeof(pega.u.d) == "object") 
pega.u.d.attachOnload(resizeAllExpandedTextAreas, true); 

pega.u.d.attachOnload(function() { 
for (tabgrpName in pega.u.d.tabViewMap) { 
var tabgrp = pega.u.d.tabViewMap[tabgrpName]; 
var activeTab = tabgrp.get("tabs")[tabgrp.get("activeIndex")]; 
var activeTabContent = activeTab.get("contentEl"); 
tabgrp.on("activeTabChange", function() { 

}, true); 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% 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