user
@lori
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();
var entry = player.GetVar("MaskBehavior");
CloudSet('mask_behavior', entry);

Any advice would be much appreicated!
Lori
reply
Reply
user
@support
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.
reply
Reply
user
@lori
Hi John,
I would be happy to share the abbreviated .story file with you. Thanks for looking at it.

https://www.dropbox.com/s/l7dy3f6cl6w6shp/Mask_test.story?dl=0

Lori
reply
Reply
user
@lori
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,
Lori
reply
Reply
user
@support
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?
reply
Reply