Connect User Input Form to More Than One Database

I’m sorry if this has been answered, but I can’t find the answer anywhere. My site uses multiple databases. I would like for a user to be able to add or update entries in these databases using a form. Is it possible to have a dropdown where the user can select which database the information goes to? I haven’t found a way to connect a form to more than one database. Any help is greatly appreciated!

yes you can insert values into your collection and set the collection name as a variable something like this…

import wixData from ‘wix-data’;

// …
let myCollection = $w(“#dropdown1”).value;

let toInsert = {
“title”: “Mr.”,
“first_name”: “John”,
“last_name”: “Doe”
};

wixData.insert(myCollection, toInsert)