how to pull values of selected multiple colors created using repeater field, i trying with the code below but its not displaying all the colors. the main field is colors and the repeater field within it is color options
while( have_rows('colors') ): the_row();
$coloroptions=get_sub_field('coloroptions',$post->ID);
$selectedcolors=$selectedcolors." , ".$coloroptions;
endwhile;
echo $selectedcolors