Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Oct 09, 2017 Oct 09, 2017

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.

Capture.JPG

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:

Capture2.JPG

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

380
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2017 Oct 10, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 11, 2017 Oct 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.

Capture.JPG

Capture2.JPG

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 11, 2017 Oct 11, 2017
LATEST

I am able to view the value with Preview in browser (F12). When I am pressing F11, I am unable to see the value. I am getting the same objectHTMLDivElement.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Oct 10, 2017 Oct 10, 2017

Do you have an object named v_avatar in Captivate?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2017 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 11, 2017 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources