Correct use of <xen:options>?

Liam W

in memoriam 1998-2020
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:options source> contain for it to correctly work?
 
<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)
 
Top Bottom