Forums

Passing Drop DOwn Selection list result to Model Condition Box

gpiosenka 19 Dec, 2014
I am using Chronoforms 5 and Chronoconnectivity 5 ,
I have created a form called prices which I used to load a data base of dog breeds and prices for various services.
So the data base looks like
ID Breed Price 1 Price 2

1 boxer $10 $15
2 terrier $ 25 $35
etc

I created another form that will display on the front end which is a drop down box of dog breeds. The user selects a breed from the list. The drop down values are assigned to match the ID number in the data base. as shown below
boxer=1
terrier=2
etc

After the user selects the breed and submits the form I want to use the chronoconnectivity plugin to display the two prices for the selected breed. I can do the selection by putting the code
<?php
return array('price_con.id' =>value);
?>
in the model conditions box on the Models tab . Where value is the result of the selection from the drop down list.

How do I pass that value from the drop down list to the code?
This topic is locked and no more replies can be posted.