MODx 3.0.4-pl I have a request to display FORMIT results on a client’s private page. So I have users with their pages that contain form and one private page that only user can access, I need to filter form submissions from the form on their page and display results or some of the results (some of the fields) on their private page so they don’t have to look in FORMIT settings and see all other users form submissions. Any ideas? @bobray
So where exactly is this data stored?
If your using the “FormItSaveForm” hook, then the form submissions are stored in the database table modx_formit_forms
. You can read the data directly from the database table or by using the class Sterc\FormIt\Model\FormItForm
.
If I’m understanding you, it sounds like you need a custom snippet that runs on the private page to pull the fields that user should see in from wherever they are stored and display them there.
Hey Bobray yes, I have Formit form on a public page that uses FormItSaveForm and saves submissions to a db, and I need to display certain fields from that form submission to a private page for a user.
Hi thanks for the direction, I’ll read more about the class Sterc\FormIt\Model\FormItForm
in documenation.
I’ve found solution in this topic thanks to Author Better way to access formit form data
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.