The CreatorCon Call for Content is officially open! Get started here.

Hide auto complete in reference variable

Fabricio4
Mega Sage

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?

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Fabricio4 

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.

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

@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.

@Fabricio4 

with the last option it would impact entire instance

 

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

Ap_1
Tera Contributor

Hello @Fabricio4 ,

 

Is your issue resolved?

Can you please tell me how you fixed as I also have the same requirement.

 

Thanks,