Support

Account

Home Forums Front-end Issues Auto populate a dropdown menu from checkbox field Reply To: Auto populate a dropdown menu from checkbox field

  • Managed to solve this like this:

    <?php 
    
    $distributor = get_field('distributors'); ?>
    
    <select>
    	<option value=""></option>
    	<?php foreach ($distributor as $key => $value) {
    		echo "<option name='' id=''>" . $distributor[$key] . "</option>";
    	} ?>
    </select>