Generate and display if $groupID not empty

forgot to make allowance for no field group being selected