- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 03:57 AM
I have a requirement in catalog item that for ITIL role users while filling form some fields will be mandatory and while the end user is getting created the same variable should be non-mandatory in catalog itm.how to resolve this requirement.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 04:40 AM
Hi @sainath reddy ,
please use following script(when to run) in catalog ui policy.
if(gs.hasRole('resolver')){
return true;
}
plz mark helpful if satisfied with the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 04:25 AM
Hi @Nilesh Pol1
If the variable should be mandatory for "resolver" role.can you mention the script once in the chat
Thanks
Sainath Reddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 04:40 AM
Hi @sainath reddy ,
please use following script(when to run) in catalog ui policy.
if(gs.hasRole('resolver')){
return true;
}
plz mark helpful if satisfied with the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 04:41 AM
You can try a on load client script with the code below,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 03:51 AM
Hi @sainath reddy ,
Mark my answer as accepted solution and helpful if issue resolved.
Thanks,
Nivedita Patil