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:04 AM
HI Mike,
Just use an alert in the script and see if that works.
Can you show a screenshot of your script. whole page including script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 03:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 03:06 AM
Hello @MikeB3 ,
Try to use the UI type specifically for portal and use alert instead of console.
If possible also share the screenshot of your code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2024 03:32 AM
I tried that but it didn't work