Automatic scrolling images in an inline list

Okay, so the way I would approach this is as follows:

  • Start by creating an array of images. If you’re currently using them in an Inline List, then I assume you have all your images in a single column. If that’s the case, you can create an array by using a lookup column and addressing your image column directly.
  • Next, add a Roll Dice column. Use the current date/time as a seed value, and the number of sides should be one less than your number of images. This will give you a random number between 1 and N (where N is your number of images), that changes every 10 seconds.
  • Next, you need a Math column that adds 1 to the result of the Roll Dice column.
  • Finally, you can use an Array Slice column to extract a random image from the array. The start position will be the result of the dice roll, and then end position will be the result of the math column.

Then all you need to do is add an image component to your screen, and target it at the array slice column. You should see a random image from your set, that changes every 10 seconds.

4 Likes