isEdit()
Last updated 16/09/2024
Example One
The following code updates the Last Updated field with the current date and time, if the form is edited.
Editing an existing record updates the Last Updated field with the current date and time
function LastUpdated(five: Five, context: any, result: FiveError) : FiveError {
if(five.actionID() === 'Address' && five.isEdit()) {
five.field.LastUpdated = five.dateTime();
}
return five.success(result);
}
Editing an existing record updates the Last Updated field with the current date and time
function LastUpdated(five, context, result) {
if(five.actionID() === 'Address' && five.isEdit()) {
five.field.LastUpdated = five.dateTime();
}
return five.success(result);
}