Hi,
When I try to copy a text variable from an InputText Widget to an expression on the PDF page, the result is a text with no Line Breaks. On the example below the user input text has a line break after every final dot and another line break and between text "Line2." and "Line3."
The final result as seen on the other image is a text with no Linebreaks.
Any idea why is this happening?
Thank you in advance,
Nuno Monteiro
Hi Nuno. This should have been resolved in the new version 12.0.1.
Thank you.
Hi Nuno
You are using a text area to define the values, and it doesn't take the value in HTML format so, if you are using a new line to enter the data, it will show you without any line break. So if you want to show the data in same format as you enter, you should use a input with HTML, you can either use a CKeditor or Tiny Editor to enter the data or can directly put an HTML in the input textarea, and then show it to the expression after converting from HTML to text.
Hope it helps.
Thanks
Neha Singhal
Just to complement the answer of @Neha Singhal, you can use this component because you need HTML: https://www.outsystems.com/forge/component-overview/6885/ckeditor-reactive
Hi Nuno,
I tried to solve this issue without using CK-Editor
1. Used text area to capture the value
2. Saved in the DB
3. Used text area in the "PDF main-content block" to show the stored value
4. Used CSS in text area
.txt-area{
resize: none !important; overflow: hidden;}
.form-control[data-input][disabled], .form-control[data-textarea][disabled]{
background-color: white !important;
border:var(--border-size-s) solid var(--color-neutral-4);
color: black !important; pointer-events:none;}
Please let me know if you have any questions.
Thank you @Neha Singhal @Paulo Torres @Deepak Mani and @Leonardo Fernandes for your responses and sorry for the very late reply.