Support

Account

Home Forums Add-ons Repeater Field Get "x" numbers of sub fields Reply To: Get "x" numbers of sub fields

  • Hi

    I use if (++$i == 2) break; to stop the loop at 2 rows. EG.

    
    if( $rows ) {
     $i = 0;
     foreach( $rows as $row ) {
      if (++$i == 2) break;
     endif;
    }
    

    So you can change the 2 to a 6 to limit the number of values returned.

    Hope that helps!?