Support Article
Textarea size shrinks and multiselect control does not display
SA-99199
Summary
On converting a section to PDF, the textarea size shrinks and the multiselect control does not display in the generated PDF.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a screenflow with three Assignments shapes.
- Configure the sections in Assignments with a textarea and a multiselect.
- In the final assignment, create a button.
- On click of the button, execute an activity which creates the PDF.
Root Cause
This behavior is as per Pega product design.
For a textarea , the size cannot be increased dynamically according to the content. In the UI, textarea is an editable content. Hence, scrollbars display to view the entire content. However, in a read-only PDF, textarea is not an editable control (unless editable PDF is created).
PDF generation occurs in the Non-template mode since it occurs on the server side. Hence, the multi-select control does not display in the PDF since it is a Template control. Template controls which do not support non-template mode are not rendered in the PDF. This is a limitation with PDF generation.
Resolution
Perform the following local-change:
The textarea does not change dynamically in the generated PDF according to the content. It is static in the PDF. To increase the textarea size in the PDF, add the below code.
textarea{
width : 650px; /* Increase/Decrease the width as per your need */
height: 300px; /* Increase/Decrease the height as per your need */
}
Note: Change in size of the textarea is reflected in both the UI and the PDF.
Multiselect is a template control and is not supported in the generated PDF since PDF generation occurs in the non-template mode. Instead of Multiselect controls, use other controls according to the requirement.
Published April 1, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.