Separate database tags with space in string

Currently I have checkboxes from a form stored in a database. When I connect them to a text string, they print as: “Cupcakes,Cakes,Cookies,Dounuts”

I’d like to display them with a space between each:
“Cupcakes, Cakes, Cookies, Dounuts”

Any suggestions?

Thanks,
Casey

You can not change how tags are displayed in the dataset.
https://www.wix.com/corvid/reference/$w.SelectionTags.html#options

If you select tags they are like this.


If you use text instead, then you will get them in an array separated with a comma.


If you try adding a space after the comma like you have suggested then you are mucking up the array and it won’t work as it should, as shown if you try going back to tags from text after adding a space.


If you then try to convert it with the space after the comma still then the tags are mucked up.

Could I display each text item as a tiny little repeater?

how to i send checkbox data from a form to a tags field ?

let toSave = { userId: userId, foto2: [] };

     toSave.opcionais = [ 

  $w( "#checkboxGroup1" ).value, 
  $w( "#checkboxGroup2" ).value, 
  $w( "#checkboxGroup3" ).value, 


  ]  

What code should i add to sent it like tag ?