How do I hide variables on a RITM or SC task if a user is not apart of specific group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 01:45 PM - edited 04-12-2023 05:58 AM
I have a requirement that after catalog item "a" is submitted that if you are not apart of assignment group "test" then you can no view the variables on the ritm or sc task. I created the script below on a catalog ui policy but it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 02:18 PM
Write a client script onLoad() on catalog item make sure that too run only for RITM and catalog task (select check box Applies to Catalog item and task).
In this onLoad client script write a logic to check group membership of logged in user then based on the result hide the variables using setVisible() function
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 02:20 PM
Thank you, I am new to coding. Do you mind helping me write out this logic?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 02:24 PM
Here is one similar example to check the membership and based on that you can hide the variables
https://www.trylearngrowrepeat.com/check-if-member-is-already-in-group/
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 04:01 PM
Thank you but this may be a little vague for me to understand