Hello all and thanks web-johnny for a great library.
I just want to share my solution to setting default values in a dropdown using grocery CRUD. Surely there is a more efficient way but this works for me.
First you have to pass the variables from your controller to your view:
// On controller
$header = Array(
'defaultplace' => 4
) which is used by grocery CRUD for dropdowns:
// Somewhere in your view
document.getElementById("field-placeid").value = <?php echo $defaultplace?>;