Hi, I have requirement that the option set value changes based on user security access, so that different user can see different value, how can I achieve that?
*This post is locked for comments
Hi, I have requirement that the option set value changes based on user security access, so that different user can see different value, how can I achieve that?
*This post is locked for comments
Andrii provided some example there - basically, the idea would be to:
- Check the user role name (here is another link: social.microsoft.com/.../get-security-role-name-using-javascript)
- Use setValue on the option set
- Probably use setSubmitMode('never') on the option set just to make sure it does not get submitted to the db
And all that would have to happen in the onload of the form
It is readonly. But it should be displaying different value based on security roles
Hi sdnd,
how do you want it to work? If user A selects a value, and, then, user B goes to CRM.. should a new value be selected automatically? Since it will be saved to the database, what is supposed to happen when user A goes to CRM again?
Hello,
The only way that's available now is scripting.
Here is how you can change the list of values available - msdn.microsoft.com/.../gg334266.aspx
Here is how you can get the list of roles available for user - msdn.microsoft.com/.../gg334511.aspx
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156