I am trying to use Javascript code to make drop down and multiple selected dropdown have same response

I have a select component and a multi select component. Both have same options and values. The problem I am having is when I run a POST API it requires specific parameters in that the parameter has to be surrounded by brackets (ie. ["Bob", "Tom", "Rick"]. The single select component put's the value in a string ie. ("Bob").

How can I make the single select component put the value into a bracket? I tried making the value "[Bob]" but it puts the quotes on the outside.

Or, how can I use a JS code to alter the value of the user's input?

Hey @Ian_Stack! So sorry for the delayed response here.

In your API query, would something like this work for you?

[{{your_select.value}}]