- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2015 12:50 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2015 08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2015 09:50 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2015 09:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 06:28 AM
\n \\n Doesn't work 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 06:30 AM
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.