• 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>?

Liam W

Well-known member
#1
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?
 

tyteen4a03

Well-known member
#2
<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)