Make fields mandatory on the Computer table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 01:24 AM
Hi,
Is it possible to define a couple of mandatory fields within the Computer table (cmdb_ci_computer) to manage our laptops and desktops.
What is the best way to do this without cascading these mandatory fields onto the extended tables like Server, vCenter, etc? Are UI policies the only way to go?
Regards,
Ayman

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 01:28 AM
Hi @ayman_h you can use client scripts also, as long as you dont make inheirt checkbox as true they wont run on child tables
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 02:11 AM
You can either do the configure dictionary on the table or create UI policy for the computer table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 02:44 AM
if you don't want this to be cascaded down then UI policy is the way to go, as Harish suggested make sure that inherited is not checked.
But you have to be careful as this makes it mandatory only on the form and not from backend or lists or feed(integration)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 02:53 AM
Hi @ayman_h ,
as @Pratiksha also have mentioned, I would suggest you to do it from dictionary level, if you don't need the value to change based on user form input. This is due to that both client scripts and UI Policies impact user performance, and also only make the field mandatory from form level.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/