Make fields mandatory on the Computer table

ayman_h
Kilo Sage
Kilo Sage

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

6 REPLIES 6

Harish KM
Kilo Patron
Kilo Patron

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

HarishKM_1-1709285290594.png

 

 

Regards
Harish

Pratiksha
Mega Sage
Mega Sage

You can either do the configure dictionary on the table or create UI policy for the computer table.   

Anurag Tripathi
Mega Patron
Mega Patron

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)

-Anurag

AndersBGS
Tera Patron
Tera Patron

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/