Skip to main content
brianf_worldtraveler
Participating Frequently
September 30, 2015
Question

How can I get variables in text captions not to cut off some of the text at the end of the caption?

  • September 30, 2015
  • 2 replies
  • 1251 views

I am using Captivate 8 and when I add a variable to a text caption, it cuts off the end of the caption at a random point. I have tried changing the character length of the text captions, both shorter and longer, I have tried changing the placement, and it seems if the caption has more than a few words, some of the text does not display. I have tried viewing the published file in SWF or HTML and it happens with both types of published files. It works fine in the preview function, but the published file appears differently.

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    October 1, 2015

    Hi,

    Can you share a screenshot of text caption slide

    Thanks,

    Rahinie

    brianf_worldtraveler
    Participating Frequently
    October 1, 2015

    Hi Rahinie,

    Here's what a slide looks like pre-published:

    And, here's what it looks like published:

    The $$learner_name$$ variable is set for 15 characters.

    Thanks,
    Brian

    brianf_worldtraveler
    Participating Frequently
    November 2, 2015

    OK.  I think I know what's happening here.

    You're inserting the variable text into the middle of a caption that already contains text either side of it.  In this case, Captivate is taking ALL of the text in that caption and making it dynamic because it has no way of knowing how long the variable text will be and it needs the other text to flow on from it.

    I would suggest you try two things:

    • remove the comma that you have placed right after the inserted variable.  It's possible that's causing the code to break
    • make the caption vertically longer to see if the remaining text is appearing on another line below the line on which the name appears.

    Thank you Rod. I removed every commas after the variable and made each text box vertically larger, and now the rest of the caption appears.  But, Captivate is putting in a hard line break after each variable.

    It seems that maybe the variable needs its own text box, which means I can't add the variable in anywhere except at the beginning without there being a visual break between words. Any idea how to prevent the hard line breaks after the variables?

    RodWard
    Community Expert
    Community Expert
    October 1, 2015

    The current maximum display length for inserted variables seems to be 150 characters, no matter what you set it to.

    brianf_worldtraveler
    Participating Frequently
    October 1, 2015

    Hi Rod,

    I am trying to get the text caption to display a learner's first name, so I have set variable lengths of 10-15 characters, and then it randomly cuts of some of the remaining text in the text caption.
    Thanks,

    Brian