How to show Test choice dropdown value (which is a custom attribute) on the Banner of the CI

RamuN
Tera Contributor

Hi Team,

 

please suggest how to display ABC which is dropdown of Test choice (custom attribute) on the banner instead of Server as shown belowservertestchoice.jpg

2 REPLIES 2

AJ-TechTrek
Giga Sage
Giga Sage

HI @RamuN ,

 

I see exactly what you’re asking — in your current form view, the form header banner (next to the CI icon) is showing the class label (Server) followed by the Name field (AS400), but you want it to display your custom Test Choice field value (ABC) instead of “Server.”


In ServiceNow, that label in the banner is controlled by the getDisplayName() logic of the table, which usually defaults to the display field (often name) plus the class name label. The “Server” label is actually the sys_class_name display value.

 

If you don’t care about “Name” being the display field, you can set u_test_choice as the display field for cmdb_ci_server in Table Dictionary.
* Go to System Definition → Tables → cmdb_ci_server
* Mark your custom choice field (u_test_choice) as Display = true
* This will make the banner show just “ABC” (but you’ll lose “AS400” in the header unless you concatenate values in the field itself)

 

Note : As I understand it, I would not recommend doing this, as it involves modifying the out-of-the-box CI class display value, which is strongly discouraged.

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
 

Thank You
AJ - TechTrek with AJ - ITOM Trainer
LinkedIn:- https://www.linkedin.com/in/ajay-kumar-66a91385/
YouTube:- https://www.youtube.com/@learnitomwithaj
Topmate:- https://topmate.io/aj_techtrekwithaj (Connect for 1-1 Session)
ServiceNow Community MVP 2025

Hi @AJ-TechTrek 

Thanks for your response 

but i want to change the sys_class_name based on dropdown i.e. server and name "ABC" should be same