Correct use of <xen:options>?

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?


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)