Forum Discussion

DanielleW's avatar
Qrew Member
3 years ago

Converting Multi-Line Text to Formula - Rich Text, Issue with Line Breaks

I have read every single post on this board regarding this subject, and have tried every suggestion and nothing is working. Please help!

I'm trying to take a user input Multi-Line Text field and convert it into a Rich Text field.

When converting it directly to RT, it takes out line breaks. When I do SearchAndReplace, nothing:


I've tried the following codes for line breaks / carriage returns, and none of them have worked:


I even set up a debug field to display "this one" if the [Schedule] field contained any of the code/characters above. I'm completely at a loss, can someone help?

Danielle Wilczewski

3 Replies

  • Try Semicolon , this if from FORMS 

    var text CombinedText = ToText(YOUR FIELD HERE);

    var text RemoveSpaceAfterSemiColon = SearchAndReplace($CombinedText, "; ",";");

    // substitute new line for semicolon
    var text rone=SearchAndReplace($RemoveSpaceAfterSemiColon,";","\n");

    Prashant Maheshwari
  • Thank you to all who messaged me privately as well as Prashant for responding here.

    We were able to find a solution, but it's hugely complicated. We took the Multi-Line Text field and in a rich text field, we were able to URL Encode, and then SearchAndReplace for each special character the user might use in their inputs.

    Moving forward, we are going to streamline the input process to make this much easier.

    Danielle W
    • MarkShnier__You's avatar
      Icon for Qrew Legend rankQrew Legend
      Danielle, are you able to post your final resolution?  I see tat you would have had to do successive SeachAndReplace operations for every special character to "Un-URLEncode" them.

      Mark Shnier (YQC)