Hello,
I've created a form with a field text and a drop down menu, and these menu data are taken from a database (I've realized that choosing "Event" and "Data/DB Operations" and putting "DB Multi Record Loader" in the "On Load" section in the right panel).
I can get data from database, because the drop down menu is populated correctly.
My problem is that I have to do a search with these data.
So I've created a custom code with <input type="submit" name="submitsearch" id="submitsearch" value="Search" />
But when I click this button, I can see anything. It seems the button doesn't send any data post.
I'm a newbie with chronoform, could you explain where I'm wrong?
Thank you all in advance, and excuse my english.
I've created a form with a field text and a drop down menu, and these menu data are taken from a database (I've realized that choosing "Event" and "Data/DB Operations" and putting "DB Multi Record Loader" in the "On Load" section in the right panel).
I can get data from database, because the drop down menu is populated correctly.
My problem is that I have to do a search with these data.
So I've created a custom code with <input type="submit" name="submitsearch" id="submitsearch" value="Search" />
But when I click this button, I can see anything. It seems the button doesn't send any data post.
I'm a newbie with chronoform, could you explain where I'm wrong?
Thank you all in advance, and excuse my english.
Hello,
What do you want to search exactly ? a button name "search" will not search, you need to add some action to query the database and another to display the results, the "DB Multi record loader" action can do this in the "on submit" event if configured correctly.
Regards,
Max
What do you want to search exactly ? a button name "search" will not search, you need to add some action to query the database and another to display the results, the "DB Multi record loader" action can do this in the "on submit" event if configured correctly.
Regards,
Max
Hello,
thanks for your reply.
I mean that I tried to make a "var_dump", so I expected to see the variable $_REQUEST['submitsearch']. Instead I could not see anything.
However I'll try to implement what you suggest.
Thank you again.
Elena
thanks for your reply.
I mean that I tried to make a "var_dump", so I expected to see the variable $_REQUEST['submitsearch']. Instead I could not see anything.
However I'll try to implement what you suggest.
Thank you again.
Elena
This topic is locked and no more replies can be posted.