Search in Reference variable But Not display fields

manasamaniac
Mega Expert

Hi Team,

 

Requirement : Users should be able to search with email or employee number in a reference variable but the fields must not be displayed in the drop down. Only the display value should be displayed in drop down.

 

Thanks

Manasa

9 REPLIES 9

Community Alums
Not applicable

Hi Manasa,

 

You can look into the below link to achieve the same:

 

https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/field-administration/...

 

Please mark as helpful/correct if this helps! 🙂

Thanks,

DR

Hi,

 

Autocomplete for reference when used displays the fields as well as search the fields.

My requirement is only to search those fields but not display it.

 

Thanks,

manasamaniac

 

Community Alums
Not applicable

Hi Manasa,

 

I think this is what you want to achieve:

find_real_file.png

For this I did the following:

the field attribute was set as ref_auto_completer=AJAXReferenceCompleter,ref_ac_columns_search=true,ref_contributions=user_show_incidents

and in default value make sure that Dynamic Default is not checked.

find_real_file.png

 

Please mark as helpful/correct if this helps! 🙂

Thanks,

DR

manasamaniac
Mega Expert

Above solution is applied for fields.

The requirement is for Variables on Record producers or catalog item.