Configure catalog item script to display confirmation message and redirect the guest user

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 1 min. de leitura
  • Configure the catalog item script to display a confirmation message and redirect the guest user to homepage or browse catalog page.

    Antes de Iniciar

    Role required: catalog_admin

    Procedimento

    1. Find the catalog items.
      1. Navigate to All > Service Catalog > Catalog Definitions > Maintain Items.
      2. Search and select the required item.
    2. Make changes to the script.
      1. Select the What it will contain tab and scroll down to the Script section.
        showing Script section under what it will contain tab
      2. Paste the following code and update it as per your requirement
        gs.addInfoMessage("Your case has been submitted"); // Info message to be displayed  
        producer.portal_redirect = "csm?id=csm_sc_category&catalog_id=-1"; // portal page to redirect to
    3. Select Update.

    Resultado

    The catalog item script is configured to display a confirmation message and redirect guest users.