Hi,
I'd like to extend vendor registration form with address details and some custom attributes. I can redefine form schema but cannot create valid State field which would include list of US states.
I tried setting a new field as:
$this->mainSchema['state'] = array(
self::SCHEMA_CLASS=>'\XLite\View\FormField\Listbox \State',
self::SCHEMA_LABEL => 'State',
self::SCHEMA_REQUIRED => false,
self::SCHEMA_MODEL_ATTRIBUTES => array(
\XLite\View\FormField\Input\Base\StringInput::PARA M_MAX_LENGTH => 'length',
);
);
But somehow, this is what I get:
http://i.imgur.com/A5tEl9O.jpg
Any ideas?
Thanks!