I actually did this very things for a client a few weeks ago, but it wasn't for registration. Her specific need was related to creating a table view and having the Userflow data available in the detailed view in a table using jQuery DataTables. I wrote her a php snippet that did this very thing. I would imagine this would work for you, but chose your own journey. In your detailed view page you would enter the shortcode of [user_flow_dynamic]. You will need to add this to functions.php or user a plugin like Code Snippets. Here is the pastbin:https://pastebin.com/aY3M73FW
This is what I love about this forum!
The User Flow add-on https://formidableforms.com/knowledgebase/formidable-user-tracking/
This is a good question and the answer is that it may be possible with custom code. There isn't anything in Formidable's KnowledgeBase to suggest that you can access the information through code. But, if Formidable makes it available to view on the Entry details page, it must be stored somewhere with the entry and should be retrievable with custom code and one of the 29-public methods found in the User Flow source code that I've documented in the Formidable Masterminds Codex.
Writing custom code like this to display in a view, could be costly because a developer would have to reverse engineer the user flow source code to see how and where Formidable saves the information and then figure out how to retrieve it to display in a custom shortcode to use with a view.
Another alternative would be to save it in a field on the entry once the code has been reverse engineered to discover where Formidable stores it.
I did a little deeper research and Formidable is constructing an HTML table to display the flow details. Once someone figures out how Formidable builds that table, the rest should be fairly easy to figure out.
Looking through a recent Developers Directory entry on Formidable Masterminds, I discovered that Formidable stores the flow data as JSON or XML in the description field in the frm_items table. The array is named user_journey. That's the entry header record. You can retrieve this using a custom SQL SELECT statement and format it as a table the same way Formidable does and display it in a view with a custom shortcode. As long as we know where Formidable saves the data, everything you want is possible.
It sounds like a fun project. Let us know how it works out.
Please login or Register to submit your answer