Hi, I created a textbox Autocompleter with 30,000 records (works well). The problem is that since I set the Autocompleter the form does not save more in the db, click on "next button" back up the page without saving confirm.
the table is composed of two fields, primary key "codiceprodotto" and "nomeprodotto")
Autocompleter the code:
the table is composed of two fields, primary key "codiceprodotto" and "nomeprodotto")
Autocompleter the code:
<?php
foreach($form->data['Datacom'] as $un_codice){
if(!empty($form->data['tag']) AND stripos($un_codice['codiceprodotto'], $form->data['tag']) === false){
continue;
}
$json[] = array('id' => $un_codice['nomeprodotto'], 'text' => $un_codice['codiceprodotto']);
}
echo json_encode($json);
?>