Forum Academy Marketplace Showcase Pricing Features

Update List - Set Field = OWN Cell Index

Thanks for looking. First my question, but then an explanation of what I’m trying to achieve, as there may be a better method…

The set up is as follows:

  • Repeating Group
  • ‘Position’ Field

How do I make it so that when a button (inside a cell) is clicked, that each record in the repeating group has the Position field updated to = it’s own Cell Index?

So far I’ve only been able to Update the List of Things so that every record’s Position is updated to equal the value of the Current Cell’s Index (i.e. the cell where the button was clicked). This means they all end up with the same Position value.

IS THERE A BETTER WAY TO DO THIS

What I’m actually trying to do is let users add a finite number of items (10) to a list. These are displayed in a repeating group. I then want the user to be able to sort them.

I wouldn’t have a clue how to do it drag/drop, so each cell has a move up/down arrow.

Some of the challenges are:

  • New items should be added to the bottom of the list (so what should the initial value of Position be set to?)
  • If the user clicks ‘move down’ and I was able to set all records to have the Position updated to their own current cell index, then it would be easy to include in the workflow an instruction to set the current cell Position to be Current Cell Index +1 … but how do I update (find) the next cell to it’s position is it’s Current Cell Index -1?

Thank you again for your ideas.

Searching through the forums I found this suggestion - which is the best I’ve seen so far. Thought I’d link to it for your convenience. If there are other suggestions, I’d love to hear them.

2 Likes

I’ve been racking my brain with the same issue. This would open up many possibilities if we could set a field for EACH thing of a repeating group equal to it’s index in that repeating group!

1 Like