Reload data via Ajax into Lightbox


I have a lightbox with a text field Name and First Name. When the user opens the lightbox he writes in the field Name. Starting with the third character data from the database should be loaded via Ajax.

Is this possible?

Because there is a lot of data, I don’t want to send all data during the initialization.

Ciao Thomas

Hi Thomas,

It’s possible, but you may need to implement a custom text input.
The simplest solution would be to use a ready third-party control that supports autocomplete and ajax loading, for example, jquery select2

You’ll be able to use it inside the lightbox by wrapping it with the lightbox control interface:

And then you should be able to enable server-side loading of values for select2 and implement the backend: