Add new row at top of repeater

Hi,

I’ve working on a page that has a form. When the user clicks on add it takes the user to the main list, which is a repeater. How do you get the new work to appear at the top instead of the bottom?

Cheers

Z

There are more advanced/complicated ways of doing what you want (messing around with manipulating a repeater’s index and what-not) but the simplest way is to just use a column in the repeater as a sort order.

Set the repeater to sort by that row and whenever you add a new row, update all the previously added rows sort number by one.

AddToTop.rp (69.4 KB)

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.