- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 11:16 PM
Hi All,
I have a requirement to make the vendor id field searchable in the reference field so I use the variable attributes
ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=name;u_vendor_id
but for some reason this doesn't work on the vendor id, I tried it on different fields and its working fine. The thing I found out is that its not working on the field with integer data type.
Does anyone has an idea on how to make integer searchable ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 11:46 PM
Hi @nicofcanlas
I don't think this is feasible. However, as a workaround, you can create a custom string-type field to store the integer value and use that custom field in the reference qualifier.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 12:30 AM
I remember few years ago similar question was asked and I believe ref_ac_columns_search doesn't work well with Integer field and it's a platform limitation
Please inform this to your customer.or make that field type as String but remember for this it might have data impact as you are changing field type
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 01:57 AM
For this scenario we can use "=<Integer value>" to search for records eg. =12345
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 11:46 PM
Hi @nicofcanlas
I don't think this is feasible. However, as a workaround, you can create a custom string-type field to store the integer value and use that custom field in the reference qualifier.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 11:49 PM - edited 05-22-2025 11:49 PM
1) Can you change the type to string, or will there be other issues because of that?
Regards,
Taimoor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 01:02 AM
there would be a bigger impact for that so no I can't change the data type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 12:30 AM
I remember few years ago similar question was asked and I believe ref_ac_columns_search doesn't work well with Integer field and it's a platform limitation
Please inform this to your customer.or make that field type as String but remember for this it might have data impact as you are changing field type
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader