Dropdown on change value not setting a variable in the workflow

Hi,
I have my dropdown bound to a data object. I have another variable (Game Form) which is a json object in which i would like to capture my dropdown selection. Its not setting the variable for some reason in the workflow on the on change event.

The dropdown is bound to a data object called Game Data.

Game Form Variable looks like this

{
“opponentId”: 0 (initial value)
}

thanks

setKeyValue(variables[‘…’], ‘opponentId’,variables[‘…1-value’])

Ok the solution is to Use the co-pilot feature to generate an answer :slight_smile: