none
Disable approve/reject using Jquery in ribbon and context menu if item is already approved

    Question

  • Hello,

    Need help on disabling approve/Reject button in ribbon(and context menu) if the item is already Approved. This is what i have tried so far:

    var ApprovalStatus = SPUtility.GetSPField('Approval Status').GetValue();
    		alert($(A[name = 'SPBookmark_ApprovalStatus'].Value()));
    		var edit = document.getElementById("Ribbon.ListForm.Display.Manage.ApproveReject-Medium");
            edit.style.display = "none";	

    Tuesday, December 13, 2016 5:36 AM

All replies