Is there a way to completely stop deactivated catalog items from being used?

Community Alums
Not applicable

I've got a somewhat interesting issue that has come up.

We have retired (deactivated) many catalog items and users cannot access them from the portal or service catalog which is as expected. The issue we are having is that some people bookmark a catalog item on their browser (have the URL to the item) and if they follow their bookmark they are still able to access the catalog item and submit it.

Is there a way so that when an item is deactivated it is not able to be used at all? Also I am looking for a way to possibly create a pop up or message that lets the user know the item has been deactivated in addition to them not being able to submit or use it whatsoever.

Any ideas would be greatly appreciated! Thanks!

12 REPLIES 12

You may find below link helpful



Re: How can I customize the "Not Authorized" message ?



Please mark this response as correct or helpful if it assisted you with your question.

Community Alums
Not applicable

I'm also trying a client script to show an error and have:



I have an onLoad client script on the sc_catalog table -



function onLoad() {


    //Displays error message if user navigates to an inactive catalog item


    if (g_form.getValue('active') == false)


    alert(getMessage("The catalog item you have navigated to is retired/inactive and can no longer be used. Please select an active catalog item and try your request again."));


    }



It however doesn't seem to be doing anything, I am wondering if it is not working because its an onload sciript but since the catalog item is not active its not actually loading anything?


Yes. It wont do any thing. If you keep the service catalog active and use the onload script, it will work.



So you can use a onload script and an onsubmit script with this pop-up.



Please mark this response as correct or helpful if it assisted you with your question.