Detail link inside a nested view

By: Fortune Mutsotso | Asked: 07/02/2024
ForumsCategory: General questionsDetail link inside a nested view
Fortune Mutsotso asked 2 months ago
I am experiencing an issue with my current Formidable Forms setup involving nested views and detail links. Here is the setup and the issue I'm encountering:   Setup:   Clients View: Displays a list of clients with a detail link. Client Details Page: Contains more client details and a nested view of each client's vehicles. Nested Vehicles View: I am attempting to add a detail link to each vehicle entry. Issue:   When I add a detail link to the vehicle view nested within the client details page, it returns no entries. Here are the steps I have taken so far:   Verified that the detail link in the nested view is configured to pass the correct parameters to the detail page. Ensured that the links are dynamically generated using [detaillink] and other dynamic fields. Double-checked the content section of my view to include all necessary shortcodes and fields. Tested the nested view on a separate page to verify its functionality independently. Despite these efforts, the nested view still does not display any entries when accessed through the client detail page.   Could you please provide guidance or solutions to resolve this issue? Any assistance or troubleshooting steps you can offer would be greatly appreciated.   Thank you in advance for your help.
1 Answers
Rob LeVineRob LeVine answered 2 months ago
I find this interesting because I was just fixing a client's issues regarding nested views and both times the result was that Formidable was returning "No Entries Found" which absolutely wasn't true. I traced both issues to the detail page. Both "problems" should, at the very least, have resulted in an error, rather than "No Entries Found". The first issue was resolved by removing a Detail Link shortcode from the Detail Page, which kinda makes sense that that shouldn't be allowed. The second issue was resolved by recreating (not duplicating) the view and making sure there was nothing in the detail page because the detail page (grid view) had an empty row in it. It seems like a Formidable bug and I suggest that if you have a reproducible case, you save it an report it to FF as a bug. To your issue, in general, I suggest tearing apart the view until the No Entries Found error goes away as a way to figure out what caused it.
Ken Taarnby replied 1 month ago

Rob/Fortune Mutsotso

I have experienced the same problem and the simple conclusion I came to was that a nested view cannot have a detail link.

This means that, on the same page, you cannot have more than 2 levels in your parent/child hierarchy using nested views.

The workaround is to manually create a link in the nested view that links to the detail entry of a new view for same form on a new page. The new view may have nested views if required to extend the hierarchy.

Rob LeVineRob LeVine replied 1 month ago

Hi Ken - thanks for the extra info. Personally, I avoid this issue by not using then detail section of a view. Since I have to customize it anyway, I just make a separate view and pass the id. I still think it's a bug that Formidable shows "No Entries Found" rather than "You can't do that", but I don't feel strongly enough to do anything about it.

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