I’ve been going around in circles trying to get this one working. I’ve invested in a couple of premium plugins, tried Gravity Math and a range of custom code functions. The closest I’ve got is the solution provided by Chris (here: Different notifications / confirmations based on amount of submitted entries - #2 by chrishajer).
I need to expand on this to not count ALL entries, but only entries submitted by a user ID.
My use case goes like this:
Each time a lesson is complete (on an external platform), I am creating an entry via incoming webhook.
I want to count the number of lessons completed by each student so we can send a notification (using GravityFlow) when X number of lessons is complete.
A new entry is created with student ID 123. This is the first entry so the count is 1.
A new entry is created with student ID 566. This is the 4th entry so count is 4.
Conditional logic notification will trigger once the 5th lessons is complete for unique student ID.
This seems like it should be pretty straight forward but I haven’t found a way to achieve this. Any help and guidance will be gratefully received.