all.
I would like to ask if it is possible to have multiple forms (now per select option) on one page instead of multiple select field.
The situation is: I have User with @ManyToMany bi-relation to Services and ‘user_services’ relation storage table, but extended with additional fields like min_price, max_price, etc. with UserService Doctrine Entity class.
I think that the better user experience in my particular case is to have a table layout with checkboxes, service names and price fields with one save button, but I can’t get how to create multiple forms in which each form corresponds to one option from select list for example and followed by additional fields for this option.
Thanks.
Imagine that you have a bunch of services and you want to display them
What would you do?
My Solution:
Controller:
UserServiceType:
ServiceType:
ServiceDetailsType:
The most amazing thing that all this works! Many thanks to Florian for spending his time on me and for keeping me thinking about the solution and my apologise for unclear question (if it is). I think, Symfony docs should be updated with more different form embedding/collection examples like this.
Cheers,
Dima.