Use comma-separated values as source for Choice?

jkirkwood001
Sun, 11 Feb 2024 18:47:29 +0000
Ask for Help

(Couldn’t find this asked elsewhere)

I am adding a voting component to my app. I have a page to create a vote ‘motion’. I have a default vote choices of “In Favour” / “Against” / “Abstain”. but the admin can also create a set of choices, like “Red” / “Green” / “None” with no theoretical limit on # of choices.

I thought of having 5 columns for up to 5 vote choices, but that seemed clumsy and didn’t resolve my problem anyway (see below). I have a toggle to use the standard vote options:

My problem is, how do I use that comma-separated list as the source for my Vote buttons?

I can’t seem to use either a plain comma-separated text field as all the values appear as one button. Nor can I select an array to use as the source. The Choice component only seems to want table rows from a single column:

I guess I could do some gymnastics to create unique Action buttons for each option, but that also seems kludgey.

Any suggestions?

Thanks!

11 posts - 5 participants