Variable attribute for reference type of variable for cmdb_rel_ci table

Thej1
Tera Expert

I have created a reference type of variable for a catalog item.

Here are the type specifications.

Thej1_0-1733036620563.png

want to show the values of the field 'child' based on the filter conditions in the dropdown of this variable.

OOB it is showing as like this in portal.

Thej1_1-1733036728722.png

Thej1_2-1733036752147.png

when we make the display for of field 'child' is made to true, then it is showing the choices as below.

Thej1_3-1733036816503.png

Thej1_4-1733036843564.png

But we want to do it without making the display as true for that field in the dictionary table.

 

I tried with many ways in variable attribute. But it is showing the created date even if we make the variable attribute as empty.

 

Is there a way we can achieve it by variable attribute ?

 

@Community Alums @Sohail Khilji @Dr Atul G- LNG @Abbas_5 @Arpan Baishya @Anurag Tripathi @Ankur Bawiskar 

 

Thanks

 

 

1 ACCEPTED SOLUTION

@Thej1 

that's not possible. Once you select it will always show field which is marked as Display=true

I won't recommend changing the Display=true on OOB table

Inform your customer about this

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Abhay Kumar1
Giga Sage

@Thej1 follow this will explains about all attributes and what does what to get corrected your variable attributes:

https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/field-administ...

 

Hope this will help you.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Thej1 

 

I think Display true is only option here.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Thej1 

don't make the field Display=true as it's a platform change.

add this

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=child,ref_ac_columns_search=true,ref_ac_order_by=name

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

I tried by adding 
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=child,ref_ac_columns_search=true,ref_ac_order_by=name
still getting the same as below.

Thej1_0-1733121230973.png

Thej1_1-1733121285643.png

Thanks