Share via

Count list item changes

kevin7 20 Reputation points
2025-03-12T06:15:28.2033333+00:00

I need to count how many times a number field in a SharePoint 2019 list changed. Is it possible using any OOTB features or development solution?

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

Answer accepted by question author

AllenXu-MSFT 24,991 Reputation points Moderator
2025-03-13T01:50:36.33+00:00

Hi @kevin7,

You can trace the value change for the field control in the new form using jQuery like this:

<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script type="text/javascript">
$(document).ready(function() {
  $('input[title="fieldname"]').get(0).onvaluesetfrompicker=DatePickerChanged;    
});

function DatePickerChanged() {
    // Do stuff

    alert("value changed");
}
</script>


Reference:


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.