114
Views
5
Comments
Solved
[Ultimate PDF] Ultimate PDF - Input Line Breaks
Question
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Service Studio Version
11.54.30 (Build 62899)

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

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Nuno. This should have been resolved in the new version 12.0.1.

Thank you.

UserImage.jpg
Neha Singhal

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


2023-08-28 07-00-10
Paulo Torres
Champion

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


2023-08-18 10-40-36
Deepak M

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.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Nuno. This should have been resolved in the new version 12.0.1.

Thank you.

2023-07-25 15-54-59
Nuno Monteiro

Thank you @Neha Singhal @Paulo Torres @Deepak Mani and @Leonardo Fernandes for your responses and sorry for the very late reply.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.