Question: I am trying to create form element using Zend\_Config\_Ini. Among other elements, I have a datepicker element (zendx\_jquery\_form\_element\_datepicker) which fails to work.

I have tried setting the element like so:

```
user.login.elements.Date.type = "datePicker"

```

and

```
user.login.elements.Date.type = "zendx_jquery_form_element_datepicker"

```

either way ends in the same error message:

```
Plugin by name 'Zendx_jquery_form_element_datepicker' was not found in the registry; used paths: Zend_Form_Element_: Zend/Form/Element/

```

or

```
Plugin by name 'DatePicker' was not found in the registry; used paths: Zend_Form_Element_: Zend/Form/Element/

```

Please help, thanks.

Answer: 
Just add prefix path before form config

```
 $form = new Zend_Form();
 $form->addPrefixPath('ZendX_JQuery_Form_Element', 'ZendX/JQuery/Form/Element', 'element');
 $form->setConfig($config->form);

```
Try 

```
user.login.elements.Date.type = "DatePicker"

```

The class name is class 

```
ZendX_JQuery_Form_Element_DatePicker 

```