symfony/symfony — Issue #3533: Feature: Add min and max to integer type in Form component.
Author: patrick-mcdougle
Created: 2012-03-08 15:20:52+00:00
State: open

It would be awesome to add a the min an max attribute to the integer type in the Form component. I see the usage in a controller happening like this:

$formBuilder = $this->createFormBuilder(array())
->add('someIntegerField', 'integer', array('min' =>2, 'max' =>5,));

Then the form rendering widget would add the min or max fields to the html input tag.
````````