User Input to Collection from Lightbox

Hi, I have a lightbox and two user input fields. one for a dropdown prompt and another rich text box. I have connected both elements to the database using the connect tool however when i preview the page i am unable to edit any of the input fields.

Am i missing something really easy to fix?
Thanks in advance
Adam

Hi have added the following to enable user elements to be added but now have no idea what code i need to add to enable the fields to actually save within the collection fields

import wixData from ‘wix-data’;
import wixWindow from ‘wix-window’;
function button1_click(event, $w) {
const toInsert = {
composureAssistant: $w(‘#dropdown1’).value,
timelinePost: $w(‘#textBox1’).value
}
wixData.insert(‘TextData’, toInsert)
.then(() => {
wixWindow.lightbox.close();
});
}

Hi Can anyone help with this, i’m completely stuck without a method to move forward. Is there corvid to add to the page so the above two elements fields can save data into my collection from the lightbox?