Correct JavaScript code to save number variable value to Data Cloud
Hello, What is the correct JavaScript code to save a Storyline number variable in the Data Cloud widget? All of my other triggers and fields are working, but they are all text variables. I have one variable that is the sum of three other variables, so it has to be a number variable. I've tried many different variations and none of them are retrieving that variable, including: var player = GetPlayer(); Any advice would be much appreicated! October 18, 2020, 7:49 pm |
Lori, the code looks good. Can you post the link to the .story file? I'll take a look and see what's going on. You can remove all slides except for this one, I really don't need to see the entire project. October 30, 2020, 12:49 pm |
Hi John, https://www.dropbox.com/s/l7dy3f6cl6w6shp/Mask_test.story?dl=0 Lori November 1, 2020, 9:16 pm |
I forgot to add that I changed the variable to a text variable and instead am capturing four different ranges. Let me know if I should change that in the data cloud widget. Thanks, November 1, 2020, 9:17 pm |
Lori, 1 - Step 1 of the "How to use..." instructions is "Open Storyline and create a blank text variable stencilusertoken." I don't see this variable in your project. 2 - What exactly is not working? November 2, 2020, 7:17 am |