Hi,
Please find the code below. This is a static dropdown $w(“#reason”).value when I do Insert into the database Its is adding, but refer to the screen shot. Its adding an another field called [Reason] and populating the data there and not adding in the field which I have created.
export function submitrequest_click(event, $w) {
let toInsert = {
“email”: $w(“#email”).value,
“Reason”: $w(“#reason”).value, //— This is dropdown input element
“comments”: $w(“#comments”).value,
“coveringEmployee”: $w(“#covering”).value
};
Screenshot of Database
Please help me out