Newby, how To submit data to my collection

Hola,
I have two collections. a titles collection and a main collection i followed wix code tutorial on filter as user must search 2000+ items i cant use dropdown as it doesn’t show all items and user cant be expected to do this even if it worked.
If I get my results that I display in a table can user select the row and add data to main collection? If not how should the user select the title?
I need the main collection to show the combined information, reason being is that in a repeater on a dynamic page i must show all data combined for user info and titles in the one collection.

Here is the wix code to filter
export function iTitle_keyPress(event, $w) {
//Add your code for this event here:
filter($w(‘#iTitle’).value);
}

function filter(title) {
$w(“#dataset2”).setFilter(wixData.filter().contains(‘fieldKey’, title))
}

i have two collections
title
main
tilte is referenced into main

many tanxs

Hello Frank!

Here is a detailed video explaining how to connect your form to a collection.
Here i s the official documentation for adding reference field items to a collection insertReference()

If you have any trouble with the coding, post your code here and we will help out!

Best,
Majd

thanx I appreciate, i have gotten past that issue now i am trying to filter a repeater, see my other post. it is sort of working. it filters a dataset referenced items in a main collections