One way you can do it is by nesting the inputs into the label, that way it
will alway select the first one


On Wed, Feb 26, 2014 at 3:14 PM, Mark Story <notifications@github.com>wrote:

> In src/View/Helper/FormHelper.php:
>
> > @@ -1100,43 +1100,6 @@ protected function _extractOption($name, $options, $default = null) {
> >   */
> >  	protected function _inputLabel($fieldName, $label, $options) {
> >  		$labelAttributes = [];
> > -		$idKey = null;
> > -		if ($options['type'] === 'date' || $options['type'] === 'datetime') {
>
> The tricky part is knowing which input will be first. Knowing that
> requires parsing/pattern matching the template, and inspecting the options.
> Perhaps we can do that as a separate pull request?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cakephp/cakephp/pull/2898/files#r10080404>
> .
>