- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 07:00 PM
Hello Everyone,
Good day!
I would like to ask for your help on how to hide/show one of the option in status for specific users.
I'd like to hide the status "Pending Root Cause Analysis" from any users and can only be seen by incident managers.
This form is for the incident ticket.
Thank you in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2023 04:35 AM
@zaxjun Create onLoad client script on incident table as below
In below script you need to replace choice value of "Pending Root Cause Analysis" status option in second parameter of removeOption() method
function onLoad() {
if (!g_user.hasRole('incident_manager')) {
g_form.removeOption('state', '9');
}
}
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2023 04:35 AM
@zaxjun Create onLoad client script on incident table as below
In below script you need to replace choice value of "Pending Root Cause Analysis" status option in second parameter of removeOption() method
function onLoad() {
if (!g_user.hasRole('incident_manager')) {
g_form.removeOption('state', '9');
}
}
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 06:30 PM
Thank you Sandeep.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 09:09 AM
@zaxjun If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!