- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 06:35 PM
Hi,
I have a requirement to show a subcategory from an incident form depending on the role and group membership. This is working on SOW but not on native view, UI Type is on ALL. Can you please advise what needs to be done? Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 06:05 PM
This KB article helped me: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1641021
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 08:58 PM
Yes, that is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 09:10 PM
can you try removing other choice value and see?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 09:48 PM
@Ankur Bawiskar
I have made other option inactive and was not able to see that subcategory. I have also make the Swap inactive because of the addOption as mentioned by @Najmuddin Mohd.
The behavior is still the same. It is showing correctly on SOW but not on native view. (Impersonated an ITIL user, Swap subcategory is not showing for both workspace and native view. Impersonated a user with asset role, Swap subcategory is showing on SOW but not on native view.)
Native view
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 09:04 PM
Hi @Rairai31 ,
Can you try by adding the Option value in the Client script itself if return condition does not match the value.
Like, if(Scratchpad == true) {
addOption;
Else{
removeOption;
}
Generally, I have used these together.
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 09:12 PM
Hi @Najmuddin Mohd,
Thank you very much for your response. I have used it. It is working fine on the SOW, the Swap option is not showing if I impersonate an itil user. But when I check the native view , I can see the Swap option. Swap option should only be visible to admin, asset and Service Desk. Thank you.