I was looking over this part of the docs:

http://symfony.com/doc/current/cookbook/form/form_collections.html

Except in my case each tag is a question has a unique label for each question.

How can I create unique labels for a collection form?

QuestionType:

use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class QuestionType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('Answer', 'choice' array( 'choices' => array( '' => 'select one', 'yes', 'no') )); } public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver->setDefaults(array( 'data_class' => 'Acme\AcmeBundle\Entity\Question\Question', )); } public function getName() { return 'question'; } }

Questionare Collection:

class BriefQuestionaireType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('Questions', 'collection', array( 'type' => new QuestionType() ) ); } public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver->setDefaults(array( 'data_class' => 'Acme\AcmeBundle\Entity\Question\Questionaire', )); } public function getName() { return 'briefquestionaire'; } }

I want to be able to do something like:

$builder->add('Questions', 'collection', array( 'label' => 'Q1:Have you ever...?', //I'd like to use unique but static questions so that I can reuse the questions again later.` 'type' => new QuestionType() ) ); $builder->add('Questions', 'collection', array( 'label' => 'Q2:Have you also...?', //I'd like to use unique but static questions so that I can reuse the questions again later.` 'type' => new QuestionType() ) );

However the above overwrites the previous label. So that only the label Q2:Have you also...? appears.

Hopefully now that it's more clear, that's what I meant when I said I wanted unique labels (which are just static questions) that have a yes/no choice selection.