Stump the Panel » jQuery for Everyone

Hide the Approve/Reject Item button

(8 posts)
  • Started 1 month ago by laura67
  • Latest reply from AutoSponge
  1. Hi panel!
    I've got a custom list, and I have content approval turned on. I'm using SPD workflows to control the approval process, so I don't really want the "Approve/Reject Item" button displaying on the DispForm page because it's confusing the end users.

    Is there a way via scripting in the CQWP to hide this button?
    I've read that there's a way to have a developer custom-develop my own toolbar, and install it on the server, etc, but I don't have that kind of resource right now.

    Laura Rogers

    Posted 1 month ago #
  2. Could Paul's JQuery solution for hiding the Save button in a survey work for this?

    Posted 1 month ago #
  3. In jQuery it would be this:

    $("a[href*='approve.aspx']").parents("td#_spFocusHere").hide().next("td.ms-separator").hide()

    Translation (find any links to the approve page, get the parent td, hide it, hide the next separator too)

    Posted 1 month ago #
  4. YOU ROCK!!! Thanks, you just saved my life!

    Laura

    Posted 1 month ago #
  5. Laura,

    Thanks :)

    I assume you can take it from here?

    Posted 1 month ago #
  6. Got it! Implemented it.

    Posted 1 month ago #
  7. jloving
    Member

    Hello all:
    I have the same problem but I don't know what a JQuery is. What I have done is added a workflow to a document library. The problem is that Approve/Reject link when clicking on the drop-down for an item. I would like to disable this link for any document library that has workflow(s) associated with it. Are there any other possible solutions besides using a JQuery?

    Thank you very much in advance.

    Have a great day!

    Jackie

    Posted 1 month ago #
  8. Jackie,

    jQuery is an extension of JavaScript, something you use on every SharePoint page. Because it works in the browser, instead of the server, we're allowed to add it just about anywhere.

    I have a lot of posts on how to use this, but the basics are, you need Edit access to the page, you need WSS3.0, and you need some code to put in the Content Editor Web Part.

    I published a "plain old JavaScript" solution here: http://autosponge.spaces.live.com/blog/cns!D7F85948C20F0293!465.entry

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.