Forums

Dropdown and chronoconnectivity models

icampi 27 Sep, 2014
Hello everyone,

I have a problem with the option panel "condictions" in a chronoconnectvity model.
I should put in a model, one condiction where the value is the value of a dropdown field of a Chronoform; in this way would make a "query" on the table of chronoconnectvity model using a dropDown value.

Dropdown uses dynamic option , model Id is enable and ModelId=Data

A condition like this ....
<?php
return array('My_filed' => $form->data['Data']);
?>
.. don't run, probably second part is not correct.

Can you help me? Thanks in advance.

P.S. My Knowlege of PHP language is very low.... sorry!
Max_admin 03 Oct, 2014
Answer
Hi icampi,

Inside Connectivity you can't use $form->data, you can get request variables using:
\GCore\Libs\Request::data("dropdown_field_name");

or
$_POST["dropdown_field_name"];


Regards,
Max
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.