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?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,472 questions
0 comments No comments
{count} votes

Accepted answer
  1. AllenXu-MSFT 24,591 Reputation points Microsoft External Staff
    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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