Forum Discussion

GatikDev's avatar
GatikDev
Community Member
4 hours ago

Issue with Web Object Data in Storyline - Need Help Saving Input Values

Hi everyone,

 

I'm working on a small storyline project that involves some complex calculation, which I've built using JavaScript and HTML. I've embedded these as web objects within Storyline.

The issue I'm facing is that when users enters details into the web object, the data disappears when they navigate away to another slide and then return.

Is there a way to save the input values so that they remain intact when revisiting the slide? Any suggestions on how to achieve this would be greatly appreciated.

Thanks in advance for the help.

  • You could save all the values in the web object to local storage and load them back in each time the web object loads.

    Or

    if you saved all of the values in storyline you could pass them back to the web object

  • 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?