Forum Discussion
Issue with Web Object Data in Storyline - Need Help Saving Input Values
My first question would be: does it need to be a web object?
Because what I think is happening is that when the slide is revisited, you're calling a fresh session of the web object, which won't remember the last input.
Could you run the calculation natively in Storyline in a Javascript trigger? And store the outputs from the last time it ran as variables, which are then displayed whenever the timeline starts on revisiting the same slide? And overwritten if the calculation is executed again?
Hi Jonathan_Hill and PhilMayor ,
Thank you for your suggestion!
The reason I haven’t implemented the calculations directly in Storyline is that the results need to generate graphical charts based on the inputs, which as far as I know, isn’t feasible within Storyline alone. That’s why I opted for a web object where I could use HTML/JavaScript for both the calculations and the chart rendering.
Do you know if there’s a way to maintain the session state of the web object or pass data between the web object and Storyline so the input values can be preserved on revisit?
P.S. the output will be hosted on LMS.
Thanks again for your help!