Autocompleter with data from DB Read

veronique 04 May, 2020
Hello,

I want to use an "autocompleter" with data from one table field in my database. My DB Read action returns a list of themes so an array (multi read is set to "yes" and model ID is "select_theme"). Starting from the autocompleter demo proposed in chronoforms v5 how should I adapt the following custom code including the declaration of the variable $countries :
<?php
$countries = ........ ;
foreach($countries as $country){
if(!empty($form->data['tag']) AND stripos($country, $form->data['tag']) === false){
continue;
}
$json[] = array('id' => $country, 'text' => $country);
}
echo json_encode($json);
Thanks for help.
Max_admin 08 May, 2020
Hi veronique,

v5 is outdated, are you willing to try this feature on the new v7 beta ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
veronique 21 May, 2020
Hi Max,

Thank you but I still need this form in version 5, I can't resume everything in version 7 more limited in fields.
Max_admin 21 May, 2020
what features you are cirrently using on v5 for this form ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.