Regarding Dropdown with Database

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

If you can share your site can try to check …

https://www.ccplcnet.com/am-leave-application

OK think that found. The name of the field in the code is Case Sensitive.
So you try to change it to:

	"reason": $w(" [#reason](https://www.wix.com/code/home/forum/search/posts%3Fquery=%23reason) ").value,  //--- This is dropdown input element 

You can find the name of the field in the collection in:

Oops Silly mistake.

Sorry for wasting your time. However, thanks a million chief. its working