Form View

By: Jon Drees | Asked: 11/14/2023
Jon Drees asked 1 year ago
Hi, I'm wondering if anyone here can help. I've sent a few emails to support, but not luck. We are building a daily tracker for our user to track things like sleep, energy levels, etc. We have a form built with graph views for each. Here is what we are having trouble with:
  1. View is showing all entries from all users. We have added the user ID to the form and have filtered the view by user ID is equal to current_user, but still no luck.
  2. We'd like to limit the entries to 1 per date. Currently, a user could submit two entries for the same date and the graph would add both of these entries together. For example if the first entry was 5 and the second was 4, it would show 9 on the graph. If possible, we'd to show the most current entry for that date or at least prevent multiple entries for the same date.
  3. is it possible to have responsive sizing on the graphs? I know we can set the width, but the built in responsive formatting is not working and it essentially leaves us with graphs that are formatted for desktop or mobile, but not both. If possible, we'd like to be able to have 2-3 columns on the desktop, but only 1 on mobile.
  4. If we have 6 fields on the graph, is it better to have 6 unique views or add all 6 into one view? Currently, we have all 6 on the same view set up in a grid.
Those are are major issues currently. Thanks in advance! 
1 Answers
Rob LeVineRob LeVine answered 1 year ago
I've never worked with Formidable Graphs, so I'll just take a shot at #1 and #2.
  1. If it's still showing all entries for all users, then the filter(s) aren't set correctly. Post a screenshot of what your filters are set to
  2. The only out-of-the-box solution that might work, though it doesn't really match your goal, is to use the "Limit number of entries to one per" and then pick "Saved Cookie" and set the cookie expiration to "24 hours". Unfortunately, that's not "per day" though. The only other way I can think of is to use a developer hook (or jQuery/Ajax) to check if the user has already submitted one for that date and then block their ability to create a new entry.

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