Skip to main content
Amy Blankenship
Legend
October 14, 2011
Answered

How to concatenate a carriage return or new line to a captivate variable?

  • October 14, 2011
  • 2 replies
  • 9722 views

I need to provide more detailed feedback than captivate makes possible based on what users do in questions.  I've got this mostly working, but I need to put the feedback for each question on a new line.  Captivate has resisted my best efforts to make this happen.

Any suggestions?

Thanks in advance!

This topic has been closed for replies.
Correct answer Amy Blankenship

OK, that doesn't work.  The variable gets assigned to whatever the last widget that is feeding into it has in its text.


OK, this does work with the TextAreaWithVariables widget, but not the TextArea widget that comes with Captivate. And it does not add to the file size.

Thanks, Steve, Lilybiti, and Jim, for sticking with me!

2 replies

Legend
October 14, 2011

Try using \n (for a new line)

Lilybiri
Legend
October 14, 2011

Whow, thanks Jim, this works great.


Do you have other similar tricks?

Lieve

Lilybiri
Legend
October 14, 2011

AFAIK you cannot insert a CR in a variable. You are using variables to display the feedback in a Text Caption? A particular reason?

The only way I was able ever to have new lines in a variable was by inserting the text in the TextArea widget, where you can use Enter for new lines, and since this widget is associated with a variable, use that variable later on in a TextArea. Just FYI

Lilybiri

Amy Blankenship
Legend
October 14, 2011

Lilybiri;

What other options are there for displaying variable text on the screen?  I am relatively new to Captivate, so if there's some other thing I could do, I'd use it.  But the problem remains of how to get the new line into the variable in the first place.

Who makes the text area widget?

Thanks;

Amy

Lilybiri
Legend
October 14, 2011

The TextArea widget is included in Captivate. Jim (who answered about \n which is working fine for me) extended this widget (free to download) so that one can manipulate the variables with advanced actions, but for the use case I described you do not need the extended version.

Was asking why you do put the feedback text in a variable? If you explain goal and present work flow, perhaps I could understand better, to offer advice.

Displaying the content of a variable on the stage is by inserting it in a Text Caption, using the X-button in the Format accordion of the PI of the Text Caption.


Lilybiri