Input Data from a Serachbox

I have a search box in a student (alumno) creation pop-up. When I start typing the name of a guardian (apoderado), all the guardians that have been entered appear in a list (pic 2). When I select one of them, I need it to be saved in the database. I also need it to be displayed in the table and in the report