Thanks for your reply.
export function dropdown1_change(event) {
let pilot= ($w( “#dropdown1” ).value)
console.log($w( “#dropdown1” ).value) //Shows blank on console!!!
console.log($w( “#dropdown1” ).valid)
console.log( “This the value :” + $w( “#dropdown1” ).value + “This is the type of value:” + typeof $w( “#dropdown1” ).value);
wixData.save( “pil” , pilot)
.then( (results) => {
let item = results; //see item below
} )
. catch ( (err) => {
let errorMsg = err;
}) //Add your code for this event here:
}
Gives me this in the console:
This the value :This is the type of value:string
Chris