Support

Account

Home Forums Add-ons Repeater Field A repeater in random order including select fields Reply To: A repeater in random order including select fields

  • Hi, forgot to set a limit to the array… for my use I was using a for loop.

    Change:

    $rand_row = $rows[ array_rand( $rows ) ];

    to:

    $row_count = count($rows);
    $rand_row = $rows[ array_rand( $rows, $row_count ) ];