infinite-networks / InfiniteFormBundle

A collection of useful form types and extensions for Symfony.
169 stars 40 forks source link

Replace entity #31

Open chadyred opened 9 years ago

chadyred commented 9 years ago

Hello,

when the default type is apply, and in a select list I click on an option type, I erase it in jQuery and replace with the type I'm choosing, and I validate, I have the message prompt to me:

Impossible to add field to this form

This error come because their is a default input create by the form mecanisme in Symfony, which map an object to input field...Is it possible to erase this default field to have nothing and made all the form with the proptotypes ?

Bacause if I remove it from the DOM, and replace with another type, the message prompt...in my mind, make a default choice = the first type must exist ! And if I don't want it...like in OneToOne associted relation.

Thanks for your work !