How can i to control 2 database dropdown.
2 dropdown running ok but.
The second depends of first. Like your sample.
But the values are in databases.
Thanks.
These screenshots show the process
Thanks
I think that no puts the values in the field. dbread is running and the selection is OK. see image please.
The code for back values to field is this:
<?php
$results = array();
$results[] ='select one please';
foreach ( $form->data['Leer_Especialidades'] as $v ) {
$results[] = $v['cf_id'].'='.$v['Denominacion'];
}
$results = implode("\n", $results);
echo $results;
$mainframe =& JFactory::getApplication();
$mainframe->close();
?>
echo $results no put into field in chronoform 5?
other question. in faqs about this you talk active AJAX.
in chronoforms 5 where is the place to active ajax?
Thomas
Hi ideagrup,
In v5 you have to return the AJAX response in JSON format, so please replace the following lines:
$results = implode("\n", $results);
echo $results;
$mainframe =& JFactory::getApplication();
$mainframe->close();
by:
echo json_encode($results);
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.