Settings and activity
5 results found
-
3 votes
Wehmann5 shared this idea ·
-
3 votes
Wehmann5 shared this idea ·
-
2 votes
Wehmann5 supported this idea ·
-
32 votes
An error occurred while saving the comment -
19 votes
An error occurred while saving the comment Wehmann5 commented
There is a Trigger script example "Beginning of the next day" in the Memento Wiki. Based on that I wrote a Trigger script that triggers upon "Updating an Entry", "After saving the entry" that gives a value to a date field that I created, called "Modified". The script reads as follows:
var m=moment();
entry().set('Modified',m.toDate().getTime());This uses the "moment.min.js" library, which I had to attach.
Wehmann5 supported this idea ·
There is a Trigger script example "Beginning of the next day" in the Memento Wiki. Based on that I wrote a Trigger script that triggers upon "Updating an Entry", "After saving the entry" that gives a value to a date field that I created, called "Modified". The script reads as follows:
var m=moment();
entry().set('Modified',m.toDate().getTime());
This uses the "moment.min.js" library, which I had to attach.
I expect it would work with a Date/Time field as well.