开发者

Making dependant fields in my form

开发者 https://www.devze.com 2023-03-21 12:44 出处:网络
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

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

精彩评论

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