Hi
Im trying to make a register for the current date when a file have been submitted but im lost when it comes to save the date in the DB, this is the code im using.
var today = new Date().toISOString().slice(0,10);
console.log(today);
$w('#text13').text = today;
Once i click submit i want to save that date into the DB, but im not sure how.
There's also a "date created" field on your database just make it visible ;)
First create a date field on your database make sure it is a text field (because you set up your date element on text)
After that put this line inside onready or under any event related to your form
$w('#yourdataset').setFieldValue('date', $w('#text13).text);
This will set your database's date field to the text you have on #text13.