开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜