Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Do you see it with Preview in Browser (F12) and/or Preview HTML5 in Browser (F11)?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Do you have an object named v_avatar in Captivate?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.