Hello
Need to add a popup form in a cdd field.
The "databasejoin" field allows you to add pop-up form; but not for the "cdd" field.
Then, take the file code "databasejoin.php"; and modify the "cascadedropdown.php" file and adapting it I run; fails but the form is displayed in a popup window.
Add this code at line 288 of cascadedropdown.php:
// code add
JText::script('PLG_ELEMENT_DBJOIN_ADD');
$popupform = (int) $params->get('cascadingdropdown_table');
$addURL = 'index.php?option=com_fabrik';
$addURL .= $app->isAdmin() ? '&task=form.view' : '&view=form';
$addURL .= '&tmpl=component&ajax=1&formid=' . $popupform;
$html[] = '<a href="' . $addURL . '" title="' . FText::_('COM_FABRIK_ADD') . '" class="toggle-addoption btn">';
$html[] = FabrikHelperHTML::image('plus.png', 'form', @$this->tmpl, array('alt' => FText::_('COM_FABRIK_SELECT'))) . '</a>';
Any idea why the form does not open in a popup window?
Thanks
Need to add a popup form in a cdd field.
The "databasejoin" field allows you to add pop-up form; but not for the "cdd" field.
Then, take the file code "databasejoin.php"; and modify the "cascadedropdown.php" file and adapting it I run; fails but the form is displayed in a popup window.
Add this code at line 288 of cascadedropdown.php:
// code add
JText::script('PLG_ELEMENT_DBJOIN_ADD');
$popupform = (int) $params->get('cascadingdropdown_table');
$addURL = 'index.php?option=com_fabrik';
$addURL .= $app->isAdmin() ? '&task=form.view' : '&view=form';
$addURL .= '&tmpl=component&ajax=1&formid=' . $popupform;
$html[] = '<a href="' . $addURL . '" title="' . FText::_('COM_FABRIK_ADD') . '" class="toggle-addoption btn">';
$html[] = FabrikHelperHTML::image('plus.png', 'form', @$this->tmpl, array('alt' => FText::_('COM_FABRIK_SELECT'))) . '</a>';
Any idea why the form does not open in a popup window?
Thanks