I have a ticketing system built out in interfaces. Id like for people to have ability to "thumbs up" an open ticket. Almost like a community voting on which feature I should add next.
Ideally, would love to only let each user vote once per record id but I know thats alot to ask for. Is there a way I could accomplish this via a clever button or something? On an Interface page I just display a grid of open tickets, and would be great if you could just click a Button field inside of the grid to vote up on it.
If you want to do this within a grid, maybe try:
1. Add a Checkbox field to your grid
2. Have a Number field to contain the number of likes
3. Have a Formula field which is `{Number} + 1`
4. Have an automation trigger when the checkfox field is checked and its action will be to paste the value from the Formula field in to the Number field, and clear the checkbox field
To do the one vote per person thing you could add a "User" type field and use that as a log for who's already voted with the "User who took action" data in the automation, and use conditionals to ignore a vote if that person's already voted
This does introduce an edge case where two users might try to check the same checkbox at the same time but seems rare enough that we shouldn't worry about it overmuch. If the edge case is a concern, I think you might have to use an Interface Button element to trigger an automation directly, but that won't be doable within a grid
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.