Skip to main content
Known Participant
October 10, 2017
Question

Unable to show the variable value at run time when publishing as HTML/SWF

  • October 10, 2017
  • 2 replies
  • 445 views

Hello,

There is a variable: v_avatar and there are two characters. The characters name are: John and Ellet. If the user selects John, v_avatar will store the value John and if the user selects Ellet, v_avatar will store the value Ellet.

I have used the $$v_avatar$$ to display the stored value. In the below image, I have highlighted with red color.

When I preview the slides I am getting the variable value displayed as selected (John for John image selected and Ellet for Ellet image selected) but when I am publishing the same project as HTML/SWF output, it is displaying: objectHTMLDivElement which is the HTML object. Please find the result slide image below:

Kindly help me with this as I don't know how to get the variable value displayed at run time when I am publishing as HTML/SWF.

Thanks,

Parichaya

    This topic has been closed for replies.

    2 replies

    TLCMediaDesign
    Inspiring
    October 10, 2017

    Do you have an object named v_avatar in Captivate?

    Lilybiri
    Legend
    October 10, 2017

    David, sorry, but this thread is following on another thread where the OP asked how he can show an avatar based on a choice on the first slide. I explained that he had to create a user variable, which I labeled v_avatar and to use that variable to store the choice and to use it in a conditional action on Enter for each slide in order to show the correct avatar.

    I don't understand why, when inserting that variablle in a text container, he is not seeing the result on runtime, but sees it in Preview.

    Known Participant
    October 11, 2017

    Hi Lilybiri,

    I did follow the process you mentioned in the earlier thread and also got the desired output. But facing issues when publishing it as HTML/SWF. The executable format of output is going on loading and not displaying anything. Kindly help me with this.

    I am working on Captivate 9.

    Lilybiri
    Legend
    October 10, 2017

    Do you see it with Preview in Browser (F12) and/or Preview HTML5 in Browser (F11)?

    Known Participant
    October 11, 2017

    Yes I see the value when doing preview (pressing F12). The highlighted area gives me the value of the selected avatar. Please find the screenshots of both the instances where the variable v_avatar shows the value John as I select John. But this value doesn't appear when I publish it as HTML/SWF.

    When pressing F11 or previewing in HTML5 browser I am unable to see the value.