Request for help: modify variable from HTML
December 1, 2016 12:00 AM
It should be possible to pass values into Lectora variables from an outside source. Does anybody have an exemple of the appropriate HTML code?
undefined
Discussion (4)
You can use custom Javascript to modify Lectora variables. What is the outside source? When do you want to modify that variable?
Javascript:
Varmyvariable.set(yourvalue);
Tim
Thank you for your reaction. What we are planning to do is this: we will receive a 360 degree photo of a shop in HTML that we will insert in a title. When a user clicks on 'transparant buttons' in the photo, a specific variable has to be modified. In this way we can check if the user has seen that particular part of the photo. The biggest challenge is that the supplier of the photos has to include the scripts that will modify the variables.
Thanks! I think that it is clear now and we will run some tests soon.
Discussions have been disabled for this post