Hi team,
Wondering if someone can help me on this weird challenge.
https://formidableforms.com/knowledgebase/how-to-set-up-comments/
In the above link, you can create a comment system on an entry detail page.
A really good example of this would be say, a comment system within the view/detail page of a job application entry.
However, I'm struggling to figure out how to "count" the number of comments that have been associated with a specific job application at the job application(s) view level.
Hopefully this structure helps you understand what I mean:
Forms:
- Form A - New Job Application
- Form B - New Comment
Views:
- View A - Job Application(s) View (List of Applications submitted using Form A)
-- View A1 - Job Application Detailed View (Detail page of a submission using Form A)
- View B - Comments View (Filtered List of Comments submitted using Form B)
The hierarchy of the set up would look like:
View A - Job Application(s) View
- View A1 - Detailed View (Single Entry)
-- Form B - New Comment Form
-- View B - Comments View (Filtered to show only comments for this Entry)
Everything above works perfectly. If you go into the Job Application, you can add a comment and it will display below the application on the detail page view. Beautiful.
But, I'm struggling to get the comment count to work in the view for All Job Applications (View A).
How do I configure one of the columns to display the count of comments for that row's Job Application?
For example:
I'm getting stuck trying to work out how to count only the comment entries associated with that specific job application entry and I can't seem to get the filter working without spawning valid field error messages.
Any guidance on this one would be greatly appreciated.
Rob, that was exactly what I needed. Nested View. Loosely following that guide, I created a new View (Comment Count). I set the view filter to pass the unique value (in my case the Job Application ID) using Get Param. Then I added ([entry_count]) in the "before content" section, left everything else blank. I also set the "No Entries" message to (0) for the view so that if there were no entries, it would display (0). In my parent view, I called the nested view in a column using a shortcode and passed the parameter (that was the key to this solution!) and bam.. we have a comment count in a column (1). Thanks for pointing me in the right direction!
Please login or Register to submit your answer