Making dependant fields in my form
I am using the framework Symfony in my project. I want to add 2 dependant fields in my form:
- The user must select a rubric from the first list
- and开发者_如何学C the second list generates automatically the items of this rubric.
I am not an experiment in Javascript and Ajax.
For Symfony2 you can use ShtumiUsefulBundle https://github.com/shtumi/ShtumiUsefulBundle. It provides dependent filtered entity form types.
I have used this plugin: sfDependentSelectPlugin
It solved my problem.
精彩评论