- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2022 11:04 PM
Hi All,
Having a requirement in one catalog form Request type is there in that under that there are 4 options are there
based on the logged in user the options has to visible on the form.
If the user is the owner of the particular table then some options has to visible on the form.
if the user is not member of the table then some other options has to visible.
is there any way to achive this requirement. need suggestions.
Regards,
Vinod.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2022 11:20 PM
Hi,
yes it's possible
Please use onLoad Catalog client script + GlideAjax
Script include function will check if logged in user is part of that group or not
then you can return true/false
Then in your client script use g_form.removeOption('variableName', 'choiceValue') to remove the choices
this link has solution; just enhance
Hide Question Choice based on logged in user belonging to group
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 07:41 AM
@Community Alums
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2022 11:20 PM
Hi,
yes it's possible
Please use onLoad Catalog client script + GlideAjax
Script include function will check if logged in user is part of that group or not
then you can return true/false
Then in your client script use g_form.removeOption('variableName', 'choiceValue') to remove the choices
this link has solution; just enhance
Hide Question Choice based on logged in user belonging to group
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 07:41 AM
@Community Alums
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader