jo-ka
Member
Hello.
I have a button element on a form, which I want to link to another page via Javacript.
So, I have a calc element which will get the link from another table, like this:
This will return a link:
Then, on that button element, I want to, when on click on that button, jump to the calculated link.
I've tried with this:
But the result is this,
It doesn't read the placeholder.
Is there a way to achieve this?
Thanks in advance.
I have a button element on a form, which I want to link to another page via Javacript.
So, I have a calc element which will get the link from another table, like this:
PHP:
$db = JFactory::getDBO();
$sql="SELECT fab_acoes_formacao.teste_regras FROM fab_acoes_formacao";
$sql.=" WHERE fab_acoes_formacao.id = ";
$sql.="'{fab_resultados_acoesformacao___acao_raw}'";
$db->setQuery($sql);
return $db->loadResult();
This will return a link:
HTML:
http://xxxxxxx.com/index.php/...
Then, on that button element, I want to, when on click on that button, jump to the calculated link.
I've tried with this:
But the result is this,
It doesn't read the placeholder.
Is there a way to achieve this?
Thanks in advance.