Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How do you display a drop down list in forms

edited November 2010 in Vanilla 2.0 - 2.8
IS there a list of input types anywhere for the form class. (i.e.input,inputbox,dropdownlist...)
IF not what is a dropdownlist called on this class? or do i need to use the morf or extended form classes for this?

Comments

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    edited November 2010
    We always instantiate an instance of Gdn_Form on the controller and echo out any controls using stuff like echo $this->Form->DropDown(...). The Gdn_Form class is in /library/core.

    You can look at virtually any view to see how it's done. The various views in /applications/dashboard/views/settings might be the most straightforward.
Sign In or Register to comment.