How can i save the selected item in array to the other database table
const form = [
{ name: "Request an Appointment" },
{ name: "From", id: "start", dateFormat: "MMMM d, yyyy h:mm tt", disabled: true },
{ name: "To", id: "end", dateFormat: "MMMM d, yyyy h:mm tt", disabled: true },
{ name: "Name", id: "name", type: "text" },
{ name: "Email", id: "email", type: "text" },
{
name: "Service",
id: "serviceDropdown",
type: "select",
options: [],
},
];