Description field formatting?

jillroma
Tera Expert

In a Template, when I populate the description with text, formatting is lost when template is applied or generated.   I'm using Description (U_description) field.   Is there a better way to do this?   Thank you!

Example of text in template:

New User Master Ticket

User Name:

User ID:

Start Date:

End Date (if applic):

Telephone (if applic):

Manager:

Similar User:

And this is how it displays when applied:

New User Master Ticket User Name: User ID: Start Date: End Date (if applic): Telephone (if applic): Manager: Similar User:

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

try using "\n" or "\n\n" to give line breaks while saving data on the u_description field


-Anurag

just tried this on javascript executor, works perfectly. same will work properly on the server side too.



g_form.setValue('description', "haha\nhaha");


-Anurag

Harish Murikina
Tera Guru

Can you send that script how shown on template.



Have used </br> to break the lines?


jillroma
Tera Expert

Thanks for the quick responses.   I just tried again, creating the template from a form (rather than directly in System Def > Templates) and then the field contents in the new template show as:



<p>New User Master Ticket<br />User Name:<br />User ID:<br />Start Date:<br />End Date (if applic):<br />Telephone (if applic):<br />Manager:<br />Similar User:</p>



All clear now, I'm very new at this, learning as I go!


Jill