Hey Everyone, Can anyone spot where I'm going wrong here?!
I am trying to add multiple values to a multiple-choice field:
const YesVotes = ["Adam", "Bob", "Charlie"];
const YesArray = [];
for (var i = 0; i < YesVotes.length; i++) {
YesArray.push('{name: ' + YesVotes[i] + '}');
}
console.log(YesArray);
So the console log is giving me what I think I want:
["{name: Adam}", "{name: Bob}", "{name: Charlie}"]
But the function
output.set('YES Votes', YesArray);
Is not making the change to the YES Votes column of my table.