I have to implement a functionality for a web application that provides an easy way to select an element between thousands of them.
Now i have a select input in a form where the user selects the parent element of an object, from a pull of all objects in database. But there are too much elements to select this way.
On the other hand i’ve developed a partial of list & filter, for this object, so my question is:
Is there some way to implement something like: a Javascript that creates a pop-up or similar with the partial inside, then the user can just select one parent using the filters and pagination in the partial and submit the selected one to the original form?
Thank you very much for your time! 😀
I finaly solved this way:
i used this javascript
over this html:
also the fields in the form are named ‘parent’ and ‘parentID’