The format string is for datetime , date and choice types only.
For datetime and date it represents a date format, for example Ymd H:i:s , and an array of options for choice .
I did not find any documentation about this, so I had to look at the source code. This is the FormTypeParser class, the place where FormType actually parsed, and you can see how the format field is set.
In the FormTypeParserTest class , you can see how to use it. Just pass a string parameter called format for one of the available types, and the analyzer will process it.
UPDATE:. You must define your constraints within your FormType class.
For instance:
class TestType extends AbstractType { private $title; private $content; private $created; public function getName() { return 'test'; } }
will be analyzed for:

ValidationParser in the doParse () method finds all the restrictions defined in your FormType class, and then executes the parseConstraint() method for each of them.
You can also use FormTypeParser , as I described above. For instance:
public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('created', 'date', array('label' => 'Created', 'format' => 'yyyy-MM-dd')) ->add('color', 'choice', array('label' => 'Color', 'choices' => array('grey' => '#CCCCCC', 'red' => '#FF0000'))) ->add('save', 'submit'); }
will be analyzed as:

Hope this helps now!