Unable to run an onLoad catalog client script on RITM when using portal

MikeB3
Tera Contributor

 

We need to run a script when a portal user opens a RITM created for a specific catalog item.

We've created a catalog client script with the following settings:

  • UI Type: All
  • Applies on Requested Items: True

However, the client script doesn't run when opening the RITM from the portal. It works fine when running on the RITM in the platform and when tested on the catalog item view.

For testing, I stripped the script down to:

 

javascript
Copy code
g_form.addInfoMessage('test'); console.log('test');
 

Does anyone know how to run an onLoad client script on a RITM when it's opened in the portal?

7 REPLIES 7

Abhishek_Chavan
Tera Expert

Here are a couple of things you can check.

  1. What have you set in the UI Type field ?
  2. Have you selected the right table ?
  3. If everything is fine can you add alert statements to the code and confirm if you see the popup on load on the page that you expected.

I am seeing nothing on the page, no popups and nothing written to the console

Here are a couple of things you can check.

  1. What have you set in the UI Type field ? - Have tried each option
  2. Have you selected the right table ? - yes 
  3. If everything is fine can you add alert statements to the code and confirm if you see the popup on load on the page that you expected? - alerts fail to appear.