Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

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

$
0
0

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";	


Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>