The CreatorCon Call for Content is officially open! Get started here.

Extra line breaks in description field

ritaaudi
Tera Contributor

When creating an incident from the incident form, the description field adds line breaks. Does any one know if there is a way to prevent the additional line breaks? Thanks! Rita

1 ACCEPTED SOLUTION

try to replace \n


-Anurag

View solution in original post

8 REPLIES 8

Hi:


Mike & Anurag, thank you!


My description field is a String. The following business rule worked:


current.description = current.description.replace(/\n/g,'');


Yay!


Rita


I am glad you were able to fix the translation, but that should not be happening unless you are trying to receiving description text from a scripted source. Therefore, if this is only occurring when you utilize a record producer to submit an incident, you may want to check the record producer scripts.


Andrew Catchpol
Giga Contributor

\n \\n Doesn't work 😞

 

Andrew Catchpol
Giga Contributor

interestingly if you do an API GET request with line breaks in the Incident description then you see the \n\r in the field. But you cant PUT or POST back.