How to preserve line breaks when switching a field from String to HTML

Stefan Reichelt
Tera Guru
Tera Guru

When I change an existing String field (like Description or Resolve Notes) from String to HTML, all the line breaks within existing entries get lost.

What's the best way to prevent that? Do I have to run some update script over the whole table before converting, or is there an easier way?

1 ACCEPTED SOLUTION

Yes, correct, you have to perform a background script (possibly during the no-peak hours to avoid performance issue) where you will massively update the table using string.replace().

This is the best thing to do for having a good result, give a try and let me know if it works!

Cheers

Alberto

View solution in original post

5 REPLIES 5

Yes, this is the only way, you could also try to reduce the amount of line, simply adding the last year close notes for example, in this way you can start doing the migration of the last year data and so on with the others.

If I have answered your question, please mark my response as correct.

Thank you very much

Cheers
Alberto