You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add a Comment, I must first select a category. Then an article from those in the chosen category.
Once these 2 fields are selected, we can finally enter the title and content of the Comment.
Here, we are forced to carry out the same procedure for the "title" and "content" fields, namely, check that "category" and "article" are not null.
Which may be redundant.
But we can imagine a case where depending on a user's choice, there would be around ten fields which should be displayed depending on choice A or choice B, and it would take a long time to have to do the same ->addDependent() for each field.
Hey! First of all, thank you for this bundle, it will revolutionize the symfony forms system in the long term, that's for sure!
In your opinion, would it be a good thing to allow the addition of several fields at the same time, depending on the same fields?
Here is a very simple example (which doesn't make sense):
We are in the form of a Comment.
To add a Comment, I must first select a category. Then an article from those in the chosen category.
Once these 2 fields are selected, we can finally enter the title and content of the Comment.
Here, we are forced to carry out the same procedure for the "title" and "content" fields, namely, check that "category" and "article" are not null.
Which may be redundant.
But we can imagine a case where depending on a user's choice, there would be around ten fields which should be displayed depending on choice A or choice B, and it would take a long time to have to do the same
->addDependent()
for each field.We could imagine something like this:
But maybe it is already more or less possible to do this kind of thing with the addEventListener method that you propose?
The text was updated successfully, but these errors were encountered: