Home General Discussion

Removing Favourites Button - Service Catalog

CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

Dear All,

I would like to remove the favorites button from the service catalog. I have the following code and it works for none advanced request offering items. Can someone help with some code which can remove the button from standard and advanced request offering types?

Thanks

Daniel

// Removing favorite button from SC

$(document).ready(function () {

setTimeout(function() {

var url = window.location.href;

if (url.indexOf("ServiceCatalog/RequestOffering") > 0 ) {

$('button:contains("Favorite")').hide();

}

}, 500);

});

Best Answer

Answers

  • Mikkel_MadsenMikkel_Madsen Customer Advanced IT Monkey ✭✭✭

    @CaterhamITSupport can you provide a full screen shot of what you are trying to achieve? I'm not sure I fully understand it 😊

  • CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

    Here is the picture. I would like to remove the favorite button from advanced request offering along the bottom of a RO.

  • CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

    Hi Mikkel,

    Thanks for the help but this didn't work.

    Kind Regards

    Daniel

  • Mikkel_MadsenMikkel_Madsen Customer Advanced IT Monkey ✭✭✭

    It does work, have you checked that it is loaded? F12 - Console

    Maybe a cache issue

  • CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

    Does this replace my current code?

    Thanks

    Daniel

  • Mikkel_MadsenMikkel_Madsen Customer Advanced IT Monkey ✭✭✭

    It hides the favorite "button" on taskbar drawer when you have a advanced request offering.

    I have no "standard" request offering so i haven't testet that one.

  • CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

    It does work, sorry I didn't close my browser.

    Really appreciate the help with this.

    Kind Regards

    Daniel

Sign In or Register to comment.