Unable to run an onLoad catalog client script on RITM when using portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 03:00 AM
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:
Does anyone know how to run an onLoad client script on a RITM when it's opened in the portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 03:12 AM
Here are a couple of things you can check.
- What have you set in the UI Type field ?
- Have you selected the right table ?
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 03:33 AM
I am seeing nothing on the page, no popups and nothing written to the console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2024 01:36 AM
Here are a couple of things you can check.
- What have you set in the UI Type field ? - Have tried each option
- Have you selected the right table ? - yes
- 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.