Inserting a linebreak into a rich text box

P

Patrick Temple

Is there a way to insert line breaks into a rich text box?

Scenario: Creating a log for a field state change. Every time the state
changes, I want to post the following informaiton into a rich text box:
Date, Last Name, First Name, State, Reason for Change.

I accomplish this using the concat() function but I don't have a way to
insert a line break to keep the log lines seperate. So it ends up being a
jumbled mess. Any ideas?

Thanks

--Patrick
 
S

Scott L. Heim [MSFT]

Hi Patrick,

Question: do you need to use the Rich Text control? If not, you could
simply use a text box control and enable the "Paragraph Breaks" option.

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Patrick Temple

Scott,

That would be fine, but how do I get the carriage return inserted.
Currently I'm using rules, do I need to do this with Javascript? The rule
looks like this:

history = concat(<history>, <date>, " ", <name>, " ", <state>, " ",
<reason>, "<carriage return>");

works fine except for <carriage return>, it converts everything to text.

Let me know what you think
Thanks

--Patrick
 
P

Patrick Temple

Scott,

That worked perfectly. Bit of a Kluge, perhaps Microsoft could look at
adding a carriage return function in following SP's. However, in the mean
time it works great. Thanks a heap.

--Patrick
 
S

Scott L. Heim [MSFT]

I'll be happy to pass along your comments Patrick! :)

Take care,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top