Editor created_at and updated_at
Editor created_at and updated_at
XerK
Posts: 25Questions: 8Answers: 0
I use autoFill and key
now I need when I change the value or add value need to auto make date for updated_at and created_at.
{ label: "Setting Number:", name: "setting_numbers.setting_number" },
{
label: 'Created At:',
name: 'setting_numbers.created_at',
type: "datetime",
def: function () { return new Date(); }
}
it doesn't work when I put a value in the setting_number field
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
I'd suggest using a server-side event for this sort of thing. Are you using the PHP, .NET or NodeJS libraries, or are you using your own server-side code?
Allan
PHP
Perfect - the link I gave above is the right documentation then .
Allan