log on update, only if changes
log on update, only if changes

I see in the asp.net documentation how to log changes/appends/deletes. However, is there a way to detect if no changes are made when the user clicks update? I don't want to log 'non-changes'.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
If you use the
submit: 'changed'
orsubmit: 'allIfChanged
option on the client-side (form-options
) then Editor won't submit data when there are no changes. So you'd know that there must be a change if you get the server-side events.Allan
I tried 'allIfChanged' and 'changed' but it didn't seem to work. It will still create a record without any actual updates.
Is it because a field is being updated automatically somehow?
submit: 'changed',
isn’t a top level option in the Editor configuration. It is part of theform-options
object, which can be used withformOptions
(one of its child properties) or with methods such asinline()
.Allan
ah, yes. thanks.