I recently had a request to default a "bill to" address that would be used for labels and mail merges - rather than duplicate the address lines i decided to create a calculate text field that I could build in my carriage return, and address line 2 logic.
If I was doing this in straight SQL I would build the string using the ASCII characters 10 or 13. I tried this logic in the calculated field but it did not work. I also try the reqular expression '/r'.
Ultimately, I just add data into the field and manually did the carriage return. I went to the column on the database and it had the square symbol that is the carriage return. I cut this from the column, pasted it into my rule within single quotes and it work.
Not really an eloquent solution, but it worked for the calculated address. I plan on doing some text level replaces or inclusions in the near future and am wondering if there is a better way to handle this text manipulation?
thanks