Capturing edit properties event using custom js RRS feed

  • Question

  • Hi All,

    I want to detect if user has clicked on edit properties or update properties using custom js for library.

    Please let me know how can do it.

    Thanks in Advance, Jiniv Thakkar

    Tuesday, December 10, 2019 7:05 AM


  • Hi

    If you’re using classic view ‘Edit properties’ command, override the JS script.

    <script type="text/javascript">
            SP.SOD.executeOrDelayUntilScriptLoaded(CustomJS, 'Core.js');
            function CustomJS() {
                var _OOBEditItemWithCheckoutAlert = window._EditItemWithCheckoutAlert;
                window._EditItemWithCheckoutAlert = function (c, a, b, d, g, h, f, e) {
                    alert('to do');
                    if (CheckoutAlertBeforeNavigate(a, b, d, g, h, f, e))
                        if (b == "1" && UseDialogsForFormsPages(a))
                            NewOrEditV4Core(c, a, true);
                            _EditItem2(c, a);

    Best Regards,


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    • Marked as answer by Jiniv Thakkar Wednesday, December 11, 2019 6:57 AM
    Wednesday, December 11, 2019 2:26 AM