Skip to main content
brianf_worldtraveler
Participating Frequently
September 30, 2015
質問

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.
  • 1251 ビュー

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.

    このトピックへの返信は締め切られました。

    返信数 2

    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

    RodWard
    Community Expert
    Community Expert
    October 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.
    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