Hide catalog item for users who already raised a request from it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2024 11:54 PM
Hi Everyone,
I want to hide a catalog item from users who already raised a request from the catalog item once. I have tried user criteria scripting, business rule, catalog client script nothing is working for me.
Can you suggest me how to achieve this scenario.
Best Regards,
Har**bleep** Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 01:21 AM
My first response would be: don't use a catalog item if it's only to be used once. Why not use a survey, assessment, or anything else?
But since it's probably already in use, a couple of suggestions:
- Create a group, add the users requesting the item to the group once they have requested it and make the item not available for that group (user criteria), or
- add all your users to the group and remove them once they have requested it and make the item available for that group (user criteria which also gives you a fast overview of who didn't request it yet
You could also script to the sc_req_item table in you user criteria, find if already one was created and if not, return, but I have seen scripted user criteria not working because of caching, so try to prevent that, if possible.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 01:39 AM
Hi @Mark Manders,
I think the approach you told is great. I will try out and will update you if it works or not.
Thank you so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 01:22 AM
Hi @Harshit Singh1,
That's a very odd requirement but instead of hiding the item, is it ok to prevent users from submitting it again?
If so, you can use the onLoad client script to display a warning message and the onSubmit client script to prevent submission.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 01:28 AM
Hi @James Chun,
We have already restricting the users to submit the form if they have raised the request one time. But now the client want us to hide the catalog item if the user already raised the request.
Can we some how block the user to open the form?
Best Regards