Form: Add allow_add and allow_delete to choiceType #3642

Closed
raziel057 opened this Issue Mar 19, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@raziel057
Contributor

raziel057 commented Mar 19, 2012

Hello,

Is it normal to not be able to add or delete items from dropdown list (dynamically in javascript). I see it's possible to do it for collections but not for the choiceType fields.

Is it wanted?

@vicb

This comment has been minimized.

Show comment
Hide comment
@vicb

vicb Mar 19, 2012

Contributor

Usually a choice type gives you the ability to chose between a set a pre-defined values. A collection is preferred for your use case.

Please send support requests to the symfony mailing list, thanks

Contributor

vicb commented Mar 19, 2012

Usually a choice type gives you the ability to chose between a set a pre-defined values. A collection is preferred for your use case.

Please send support requests to the symfony mailing list, thanks

@vicb vicb closed this Mar 19, 2012

@raziel057

This comment has been minimized.

Show comment
Hide comment
@raziel057

raziel057 Mar 21, 2012

Contributor

In fact it can't works with a collectionType as each item of a collection has a different name.

For example, if I create a collection of radioType, I would be able to check all the radio buttons of the collection.

In my mind it was a feature request rather than a support request. Sorry for the inconvenience.

Contributor

raziel057 commented Mar 21, 2012

In fact it can't works with a collectionType as each item of a collection has a different name.

For example, if I create a collection of radioType, I would be able to check all the radio buttons of the collection.

In my mind it was a feature request rather than a support request. Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment