Dear all,
I have a form that contain multiplier, and autocompleter inside the multiplier. I get confused, when I try autocompleter without multiplier, it works good. But when I applied to multiplier, it's do nothing. The different only on fields selector, usually we put this value with for example #country, On multiplier I put #text[__N__][nm_kab]. And custom code on kabupaten event
So, How to create autocompleter works on multiplier?
Thank you.
I have a form that contain multiplier, and autocompleter inside the multiplier. I get confused, when I try autocompleter without multiplier, it works good. But when I applied to multiplier, it's do nothing. The different only on fields selector, usually we put this value with for example #country, On multiplier I put #text[__N__][nm_kab]. And custom code on kabupaten event
<?php
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query = "SELECT `nm_kab` FROM `tbl_m_kabupaten` ;";
$db->setQuery($query);
$countries = $db->loadcolumn();
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);
So, How to create autocompleter works on multiplier?
Thank you.