atk4/atk4-addons

autocomplete not working

Closed this issue · 3 comments

This code

$f=$this->add('Form');
$name=$f->addField('autocomplete','name','Contact')->setModel('Contact');
$f->getElement('name')->js('change',$f->js()->submit());

Results in

Exception_Logic

Method is not defined for this object

Additional information:

class: Form_Field_autocomplete
method: allowAdd
arguments: Array ( )

for now, please manually delete this line:

https://github.com/atk4/atk4-addons/blob/master/mvc/Form/Field/autocomplete.php#L16

Autocomplete will be back as a separate add-on.

Autocomplete add-on is developed here: https://github.com/atk4/autocomplete
I'm not sure will it be included in atk4-addons project or left as separate add-on.

Maybe we can close this Issue report now?