Adding a timestamp to existing Data Cloud widget

Hello,

I created a Data Cloud widget for use with Storyline and it's working great. Is there a way to add a field with a timestamp of when the user's data was sent to the widget? If so, how could I do that?

Thanks!
Lori

August 30, 2019, 10:08 am

Click for thumbs down.0Click for thumbs up.0#1

Hi Lori. Consider creating a blank text field in the data table, generating a date string with JavaScript, and saving the date as text. Here's one example of getting date/time with JS:

https://tecadmin.net/get-current-date-time-javascript/

So your code will look something like this:

var today = new Date();

var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();

CloudSet('field',date);

August 30, 2019, 10:27 am

Click for thumbs down.0Click for thumbs up.0#2