Hide choice values based on roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 03:04 AM
What is best practice to hide choice values based on roles in form and list view?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 03:10 AM
You can use g_user.hasRole() and removeOption() function.
You can follow below post for basic understanding:
Choice list to show depending upon Roles
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 03:14 AM
Hello Harry,
You can use onload client script in that use g_user.hasRole().
You can refere below link for this:
If my answer is helpful please mark it as helpful or correct!
Pratimak