Editor created_at and updated_at

Editor created_at and updated_at

XerKXerK 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

Answers

  • allanallan Posts: 63,456Questions: 1Answers: 10,465 Site admin
    Answer ✓

    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

  • XerKXerK Posts: 25Questions: 8Answers: 0

    PHP

  • allanallan Posts: 63,456Questions: 1Answers: 10,465 Site admin

    Perfect - the link I gave above is the right documentation then :).

    Allan

This discussion has been closed.