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.

Hide display name in reference variable

Ashok76
Tera Contributor

Hi All,

            I have used the following filter in variable attributes for custom table field

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_group_approvers,ref_ac_columns_search=true,ref_ac_display_value=false

find_real_file.png

 

My requirement is to display just a single list of group approvers field and I have set "ref_ac_display_value=false"

Stil the display name is visible along with group approvers

find_real_file.png

 

please suggest any changes to syntax  to display only one field(group approvers)

8 REPLIES 8

Hi Ankur,

I could see a custom field u_name with set display = true

I made the field display = false and updated attributes as ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_group_approvers,ref_ac_columns_search=true

 

Still it displays as 2 columns

 

Can you tru below.

ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=u_group_approvers,ref_ac_order_by=name,ref_ac_display_value=false

Hi,

please check below points

Reference fields look for the display value in the following order:

your case falls in 3rd point as there is no field which is display and you have u_name field on your table

  1. A field with display=true in the system dictionary on the lowest sub-table for extended tables.
  2. A field with display=true in the system dictionary on the parent table.
  3. A field named name or u_name.
  4. The Created on field of the referenced record.

Please note you can only set one field can be defined as the display value for a table.

Regards
Ankur

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

Raghu Ram Y
Kilo Sage

Hi @Ashok 

Follow the below steps..

Step 1:  Go to header and Right click .. Configure -> All

find_real_file.png

Step 2: Go to dictionary entries, under table give your table name and under type give collection 

find_real_file.png

Step 3: Open it and see what is the value for Reference auto completer columns.. I think there you had provied display name...so remove it..it solves your issue.

find_real_file.png