Hide auto complete in reference variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 07:37 AM
Hello!
I'm trying to disable the auto complete list that appears as you type in the variable. I have tried using "Variable attributes", but nothing worked.
For instance, this variable is a reference to the sys_user table. I don't want users to see other possible users in the list for security reasons. If possible, I'd want to completely eliminate any auto complete choice, even when there's a perfect match, and only accept the choice after typing the string perfectly and pressing enter. If there was a perfect match, the choice would be filled, if not, the variable would return empty.
Is that possible without a client script? And if not, how would that client script look like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 07:42 AM
Have you tried setting for the variable the attribute ref_ac_columns_search to false?
OR
try setting some wrong value inside ref_auto_completer
something like this ref_auto_completer=AJAXReferenceCompleterTest
OR
Last Option
I believe the only way is to update system property but it would impact entire instance
Disable system property "glide.ui.ref_ac.startswith". OR set the value to false.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 08:19 AM
@Ankur Bawiskar
I've tried those, but didn't work. I also thought that setting ref_ac_columns_search or ref_ac_display_value
to false would work, but it produced no effect.
The last option wouldn't work for me, as I only want this behavior for one particular variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 08:49 AM
with the last option it would impact entire instance
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 07:37 PM
Hello @Fabricio4 ,
Is your issue resolved?
Can you please tell me how you fixed as I also have the same requirement.
Thanks,