Does the ZF2 Form (zendframework/zend-form
) provide a mechanism to create text fields with autocompleted value list? Or is it just done by using the common Zend\Form\Element\Text
, a Controller
, that provides the data, and some JavaScript (not by ZF generated, but implemented in any proper way)?
Zend Form doesn't have such mechanism, so proper way is use AJAX request with JSON response. See Rob Allen's tutorial for this: