Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide certain attributes for reference field searches

Michael H1
Tera Guru

Apologies in advance if this is not under the correct forum and topic.

I am adding a reference variable to a Record Producer that is to be searchable with a set of columns. However, a date column is displaying alongside it, and I do not know how to hide it. The variable attributes are as follows:

 ref_ac_columns=col_variable,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

At first, I thought this was including the sys_created_on field inadvertently, but if I add that to ref_ac_columns, it is added as an additional column in the reference field search and it says "Created On ....", which is different than the date displayed on the left. I am unsure of where this date in the left hand column is coming from and how to hide it or remove it from view.

For information, this reference variable maps to a reference field that is a reference to another custom table. The reference field has the same attributes as on the Record Producer.

 

find_real_file.png

1 ACCEPTED SOLUTION

Michael H1
Tera Guru

I figured out a solution after attempting some troubleshooting on my end. Although no fields on this custom table had Display set as true, I set the custom column that is blacked out here with Display as true, and the Created fields ceased to display. It appears that without setting a specific field with Display as true results in one being used automatically? I don't know if this is an issue or expected behavior but since I needed to display the custom column anyways in the search, marking Display as true for it was no problem.

View solution in original post

6 REPLIES 6

Michael H1
Tera Guru

I figured out a solution after attempting some troubleshooting on my end. Although no fields on this custom table had Display set as true, I set the custom column that is blacked out here with Display as true, and the Created fields ceased to display. It appears that without setting a specific field with Display as true results in one being used automatically? I don't know if this is an issue or expected behavior but since I needed to display the custom column anyways in the search, marking Display as true for it was no problem.

AmberTemple
Tera Guru

Thank you for sharing this solution, I had the same issue and setting the table column display value to true eliminated the "created" field that was showing up in the reference variable.