UIB Typeahead Multi clearing after user is selected.

IreneIndorf
Tera Expert

I have requirements on a project to have a typeahead component select multiple users for approvals in UI Builder. It is allowing me to select a user, however, it automatically clears once it is clicked. I have the typeahead multi component on a modal. Any ideas on why this would be happening?

TIA!

7 REPLIES 7

SwarnadeepNandy
Mega Sage

Hello @IreneIndorf,

 

There could be several possible reasons for this issue, such as:

  • The typeahead multi component is not configured properly in the UI Builder. You may need to check the properties and settings of the component, such as the data source, the value field, the display field, the multiple selection option, etc. You can find more information about how to use and configure the typeahead multi component in this link: 4.
  • The typeahead multi component is conflicting with other components or scripts on the modal. You may need to check if there are any errors or warnings in the browser console or the UI Builder logs that could indicate a problem. You may also need to test the component in isolation or on a different page to see if it works as expected.
  • The typeahead multi component is not compatible with the version of ServiceNow or UI Builder that you are using. You may need to check if there are any known issues or limitations with the component or the platform that could affect its functionality. You may also need to update or upgrade your instance or application to the latest version if possible.

Hope this helps.

 

Kind Regards,

Swarnadeep Nandy

Thank you for the response. Where would I find the multiple selection option? I have the typeahead multi component wired up the following way:

 

This is what I have for the data source in the picture below.

84A139E0-B1A0-4F5F-A861-087B520FB675_1_201_a.jpeg

 

The client script.

8154B597-92F4-4EEB-B941-1BDD9BBFE39B_1_201_a.jpeg

As well as this script in the edited property value of the list items on the typeahead multi component.

A95162BF-649D-4A25-9C73-7B1FD504DCDE_1_201_a.jpeg

 

UPDATE - I was able to fix the problem of the initial selected user clearing out, however, it still won't allow me to select multiple users (please see picture below). 

 

D0285DE7-A88E-4DC0-934A-0703DA2BE6AF_1_201_a.jpeg

 

Thanks for your help!

Brad Tilton
ServiceNow Employee
ServiceNow Employee

What are the event handlers connected to the click event? It's possible it's manually being cleared out by setting the value back to empty. We'll probably need a lot more context and screenshots to help you troubleshoot.

Hi Brad,

I have the same setup and I am also running into the same issue, here is a video summary:

https://www.loom.com/share/a19b2aa423a442b4a232d0e59505f18c

 

Please let me know if you are unable to see the video.

Your assistance is greatly appreciated and thank you for being so active in the community!