For some reason my dropdown doesn’t like using a datetime value as the value portion of a label/value pair. Any reason why this wouldn’t work? sailDate is a datetime field.
function dropdownOptions ( data ){
return data . map ( item => {
return {
label : item . sailDate . toLocaleDateString ()+ " " + item . period ,
value : item . sailDate
}
})
}
btw…it works fine when I convert to string via: value: item.sailDate.toLocaleDateString. But I’m trying to store this in the form’s data table as a datetime so I can use it elsewhere.