1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Correct use of <xen:options>?

Discussion in 'XenForo Development Discussions' started by Liam W, Jul 28, 2013.

  1. Liam W

    Liam W Well-Known Member

    I have a select drop down in an admin template using the <xen:selectboxunit>, however nothing is available in the post result when the form is submitted.

    Actually, there is something available - 'name'. What should the array used in <xen:eek:ptions source> contain for it to correctly work?
  2. tyteen4a03

    tyteen4a03 Well-Known Member

    <xen : options source="$arrayOfOptions" />, $arrayOfOptions = array("OptionName" => "OptionValue", "anotherOption" => "anotherValue");

    There are lots of examples how <xen : option> work in the AdminCP templates, users_edit may be of use to you (since it contains most usages of <xen> tags)
    Liam W likes this.

Share This Page