user
@john
Text variable contents not saved
My numeric variables' values are being stored OK. But my text variables' values will not store.
The storyline variable is 'email_address' and the corresponding field in Data Cloud is also 'email address'.
I have tried two versions of the code:

Firstly:
var player = GetPlayer();
var entry = player.GetVar("email_address");
CloudSet('email_address', entry);

Secondly:
CloudSet('email_address', email_address);

Both versions store the data as '0'
reply
Reply
user
@support
John, in the Data Cloud settings, you probably set the type of the email_address field to numeric. So the text you're trying to write into that field evaluates to 0.
reply
Reply
user
@john
Thanks for the suggestion, but nope. The variables in question are definitely set to be 'text'.
reply
Reply
user
@john
Apologies, I read your helpful suggestion mistakenly as variable settings in Storyline.
In the data cloud table, they were indeed set to numeric. Missed that.
It works now, thanks
reply
Reply
user
@support
No worries at all. Thank you for posting the update.
reply
Reply