How can I add User Flow to a View?

By: Kimberly Hargis | Asked: 08/23/2024
ForumsCategory: How-toHow can I add User Flow to a View?
Kimberly HargisKimberly Hargis asked 3 months ago
Hi, I want to make a view for the website registration submissions. Can I add user flows to that view?   Thank
Kim
3 Answers
Best Answer
Walter JonesWalter Jones answered 3 months ago

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

Victor Font replied 3 months ago

This is what I love about this forum!

Victor Font answered 3 months ago
What do you mean by "user flow"?
Victor Font replied 3 months ago

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.

Victor Font replied 3 months ago

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.

Victor Font replied 3 months ago

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.

Kimberly HargisKimberly Hargis answered 3 months ago
Thank you everyone, I have to finish another project but plan to save this thread and come back to it next week.  

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right