Home Advanced Request Offering

Hide a Request Offering with JS/CSS

Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
I have created a request offering which directly links to a service offering. In order for it to be visible it needs to be part of a service offering (so I just stuck the RO in the SO it links to).
How can I hide this RO on the catalog so user's can't see it?

Answers

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
    Which Home page are you using? 
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    The catalog home page 
  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
    Adding something like this to custom.css should work:
    .ro-request-offering {
    visibility: hidden;
    }
    a[data-request="d59d5e9f-c709-0488-e6be-ed34c2784ad6"] {
    visibility: hidden;
    }
    Note that the class 'ro-request-offering' corresponds to an RO called "Request Offering".  If you right click on the RO and click inspect, you should be able to find its class.  The a[data-request=id] is the caption of the RO where id is the GUID of the RO.  
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    Hmmm I can't seem to find an individual class for the RO to hide it. 

    Just to be clear. This RO links to a SO from the /servicecatalog/list# home page
  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    Is this the page you're talking about? 
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    Mine looks nothing like that...


  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    If i understand this, you have an RO, that just links to an SO. (I'm assuming so you can make it a 'Top Request'???) When you click it to open the SO, you no longer want it to show else your users might well get stuck in an eternal loop? Is that right?
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    Bang on @Geoff_Ross (like what you've done with your request offering)! 
  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    My request offering???

    You're right, there's nothing unique to select. Best I can do is either
    $('.sc__ro-lists > div > div:eq(0)').hide()

    where 0 is the index of the one you want to hide. It works but not very robust, if you create a new RO in that SO the index might change and the wrong one will be hidden.

    Or:
    $('a:contains("Issues")').parent().parent().parent().parent().hide()

    But if you have another other RO with the word 'Issues' in it you will be in trouble. You have a lot of 'Issue' but no 'Issues' looking at the image above. But you can never make a RO to request certificate reissues or anything like that. Also, multi language would need to be accounted for.

    Good luck

    Geoff
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    edited June 2018
    Sorry I meant portal. I'm assuming you guys have used a different route for the support portal to hide the requests RO.

    The index is interesting. Might be able to dynamically determine that. Something to experiment with  

    I'll give those a go and see how we get on.

    Thanks 
  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Which RO do we do that for? I'm assuming you log more tickets than I do as I'm not sure which one you are referring to?
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    It's the "Raise Request" offering which directs to a service offering
  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Ah ok. thats not hidden, its under General -> Services. I am assuming you can get there else you wouldn't be able to see it on the homepage.

    https://support.cireson.com/ServiceCatalog/Listing#/Service/ff37628c-3080-dbcb-f53f-1fed3ff696aa

    Looks like we've gone for the hide it in plain sight option!
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    And that's the way I'll do it, saves a lot of fuss (sometimes the simple options are the best!)
  • Alex_MarshAlex_Marsh Premier Partner Advanced IT Monkey ✭✭✭
    Out of interest, is it possible to change the layout of the servicecatalog/listing page?
Sign In or Register to comment.