- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 04:37 AM
I found the following options of (mandatory, hidden, visible) for the data type "custom with label" are not available on catalog item. How to enable those for the data type "custom with label" on catalog item.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 04:41 AM
Hi,
you cannot make it mandatory as it's not some direct variable. the logic to make it mandatory needs to be present within the UI macro or widget you are using to show the content
You can show/hide it like this
1) just create a new variable of type container start just before this variable and container end just after this variable
2) then hide the container start using UI policy etc
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
05-17-2022 04:41 AM
Hi,
you cannot make it mandatory as it's not some direct variable. the logic to make it mandatory needs to be present within the UI macro or widget you are using to show the content
You can show/hide it like this
1) just create a new variable of type container start just before this variable and container end just after this variable
2) then hide the container start using UI policy etc
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
05-17-2022 06:02 AM
What Code needs to be added on the widget? so I can make those fields hidden or visible. Because that's is dependent field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2022 09:16 PM
you will have to write the HTML logic there
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader