Hello,
I am looking for a bit of a guidance on how to retrieve and display results returned upon form submission.
So, I have been testing this form (a simple one: an input and a submit button) which uses a query to SELECT
- FROM myDB WHERE id = %field_q1% (it is actually MySQL DB and %field_q1% is a keyword example for input field: ID: #field:q1).
For the purpose of this exercise, my db connection as well as the query has been set up in ‘Submission Actions=>Run Database Query’. Unfortunately, every time I submit the form I only can see following message: ‘Unattached Questions; My Label Name, My Input Value’ as a response but not the result(s) I’d expect.
In form’s Body Copy=>Page Contents, once again I use very simple set up:
%form_errors_message%
%question_label_field_q1%
%question_field_field_q1%
%submit_button%
I didn’t need a confirmation or thank you page so couldn’t bother and left it out.
Now, my submission log shows every submitted entry correctly. Yet again, not being able to show the query result(s) on the page where the form is (Form Submission URL: current URL).
Just to confirm, my DB connection is fully operational and tested. I have set up a separate DB Connector, DB Data Source showing shadow assets correctly and Asset Listing nested in a Standard Page in order to display any results using exactly same credentials as per connection above.
My current Matrix version is:5.1.3.0
So, in a (rather large) nut shell, I wonder where did I go wrong ?..
Thanks for any help.