Adding or removing people from a list

I have a column for People. I use it to store all the people who voted on an idea. So if someone clicks on the “vote” button, I wanted to add that user() to the list in the people column. If I click ‘remove vote’, I want to remove that user() from the list of people.

I can easily swap the value with user(), but not sure how to maintain the array of current people who voted and add or delete a user on clicking the button.

Any ideas?

2 Likes

Hello Paul,
I don’t know if you solved your problem already, but I suggest the following:

Let’s assume your idea table has three column: Idea title, Vote button and Voters

Change the type of Vote button to button. Enter the following formulas

Label:

Action:

This should make it.