Insert to database (Code)

Hi Scott

Your code generally speaking has all the right elements, but not necessarily in the correct order…

I would suggest that you move the ‘toInsert’ object inside the submit button’s onClick. Then, for each of your keys inside the ‘toInsert’ object, I would add the input element instead of the variable declared, for instance…:

 let toInsert = {
     "emailAddress": $w("#EmailAddress").value,
     "name": $w("#fullName").value
     }

…and so on

Tiaan