Hard Carriage Return with Varialbe
April 7, 2016 12:00 AM
I have a VAR with have a value of "Added on VAR(CurrentDate): VAR(Entry_0001)
[End] --- " so it appears in a printable document. The user can add multiple time to the entry field to allow a continuous journal but it looks like the following:
"Added on Thursday, April 07, 2016: 1st note added to the entry field. [end]--- added on Thurdsay, April 07, 2016: 2nd note added to the entry field [end] ---"
This is all good but I would like the remove the "[end] ---" portion, but that's what tells the learner that specific comment was finished. How do I get a hard carriage return to happen so that each entry begins on a new line?
undefined
Discussion (4)
Add \r to the variable:
Added on VAR(CurrentDate): VAR(Entry_0001)\r
Tim
That didn't work for me...do you have any ideas to what's I'm doing incorrectly. Below is my line item:
undefined
Added on VAR(CurrentDate): VAR(Entry_0003)\r [End] ---
undefined
Thanks for your help. I'm trying to use variables more and more and could use any recommendations to learn.
Billi
This didn't work for me...what did I do incorrectly? I put the \r outside the ( ) item, but all it did was show the "\r" as text.
Maybe my use of the term variable was imprecise in this context. I've created a course with a simple commenting feature. Comments a added to a variable that's put into a textfield to be printed:
http://community.trivantis.com/shared-content/breaks-in-variables/
Tim
P.S. I should have added conditions to all actions on the "Save" button:
Only if "Entry_0001" is not empty
and to the actions on the "Print" button
Only if "notes" is not empty.
Discussions have been disabled for this post