youtube image
From YouTube: Using Randomization with List Formatting

Description

In this 13-minute developer-focused demo, Chris Kent renders a randomly generated stack of informational cards with the last card in the reshuffled list showing up at the top of the stack. Whenever one visits the page hosting this list view - a “randomly shown fact card” will render. Randomization is based on the calculation of time in milliseconds - Number(@now) function. The resulting value is used to select an image. A This PnP Community demo is taken from the General Microsoft 365 Development Special Interest Group (SIG) - Bi-weekly sync call recorded on November 25, 2021.

Demo Presenter: Chris Kent (DMI) | @thechriskent

Supporting materials:
• Documentation – Use column formatting to customize SharePoint | https://aka.ms/spdocs-column-formatting
• Samples – List formatting samples (random-item) | https://github.com/pnp/List-Formatting/tree/master/view-samples

Learn more:
• Learn more about the Microsoft 365 Patterns and Practices community at: http://aka.ms/m365pnp
• Visit the Microsoft 365 Patterns and Practices community YouTube channel: https://aka.ms/m365pnp-videos