Background
Site has a user specific actions collection. When a user logs in and selects a group, relevant actions are assigned to the dropdown menu of actions. When a user clicks a specific action from this dropdown, details get populated.
Problem
Text and date fields are getting populated, but dropdown driven fields are not getting the data. Here are the two screenshots, first of blank menu and second of a selected action with dropdowns not populated circled red
Reference Code
wixData.query("E4_ACTIONS")
.eq('_id',$w("#ActionsDropdown").value)
.find()
.then((FoundAct)=>{
let item_act=FoundAct.items[0]
console.log("265 Selected Action is ",item_act._id," and Actions Dropdown is",$w("#ActionsDropdown").value," also Behavior is ",item_act.behavior)
$w("#ActionDescription").value=item_act.action
$w("#ActionComments").value=item_act.comments
$w("#ActionStatus").value=item_act.status
$w("#ActionDueDate").value=item_act.dueDate
$w("#ActionBehavior").value=item_act.behavior
console.log("274 Action Behavior value is ",$w("#ActionBehavior").value)
})
Where am I making an error?