Skip to content

Loading…

Form: Add allow_add and allow_delete to choiceType #3642

Closed
raziel057 opened this Issue · 2 comments

2 participants

@raziel057

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

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
@raziel057

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
Something went wrong with that request. Please try again.