How do I change image order in a repeater please?

How do I change image order in a repeater please ?

Hi, Jennifer_Amy !!

Sounds like you’re having some trouble. I’d be glad to help you out.

Are you loading your repeater’s item data from a collection through a dataset? Of course, you could do the same with Velo code, but I’ll assume you’re displaying items in the repeater through data saved in the collection. Try adding a new field to your collection called “order” (with a Number type). Then, set the order value for each item to determine the display order. In programming, it’s common to start indexing from 0, so set the order value of the item you want to display first to “0,” and so on. Then, in your dataset settings, set it to sort in ascending order based on the “order” field. This way, you should be able to display your images in the desired sequence in the repeater.

4 Likes

Hi Jennifer,

Check this out:

2 Likes

Thank you Pratham for your assistance on this issue. It is most appreicated.

1 Like