- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-29-2018 10:53 AM
I have a choice list which is populated by a reference field, which has quite a lot of options.
I would like to be able to reduce the number of options based on the group membership of the logged in user.
Ex:
If I have 10 values populating this choice list, and a user who is a member of group X selects the dropdown, they will only see the first 5.
A user who is a member of group Y will only see the last 5 options.
A user who is a member of both groups will see all 10 options.
I believe I will need to use an On Load client script, but have not found a way to query for a group membership of the current user, and restrict (or show) the options accordingly.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-29-2018 12:58 PM
It will allow multiple group member values. This can be achieved.
g_scratchpad.memberCapex = true;
g_scratchpad.memberAdmin = true;
I haven't used the scratchpad much yet, am I able to define multiple results? In the BR you referred to g_scratchpad.member but the Client Script if statment just used g_scratchpad.-- Sorry for the typo it should be g_scratchpad.memberCapex = true; in the client script too
Please mark my response as correct and helpful if it helped solved your question.
-Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-30-2018 06:07 AM
Great, I am glad you were able to get it working!