Forum Academy Marketplace Showcase Pricing Features

How can I limit a user being able to perform an action to once every 24 hrs

I’m creating a social network app using the template from AirDev. I want the app to limit each user to 1 post every 24 hours. All functions are complete except for this one. What is the simplest way I can accomplish this? Thank you in advance for your help here.

Hi there, @tgamblegoldschmidt… I’m sure there are a number of ways you could do what you have described, but one that comes to mind is to have a date field on the User data type where, when a user submits a post, you have a workflow step that makes changes to the user and stores the current date/time + 24 hours in that field. Then, you could use the value in that field as part of a condition to disable the user’s ability to submit another post until the current date/time is greater than the value in that field.

Anyway, I hope that makes sense, and I hope it helps, even if it’s just food for thought.



This is also how i would do it. +1

1 Like