PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Delayed posts

  1. branis
    Member

    Hello!

    GravityForms seems almost perfect for my needs, but I have a few questions before I decide to purchase it:

    1. Can the user select a date when his post will be published?
    2. Can I limit the total number of posts per day/week/month, depending on the Post Category that can be published via GravityForms?
    3. Connected to the previous questions, if both are possible, would the date picker filter the available dates?

    Thanks!

    Posted 12 years ago on Thursday November 24, 2011 | Permalink
  2. 1. Not by default. You can ask them for a date, store that value, and change the post status to scheduled using that date. Or, there might be a plugin at the WordPress.org repository that will allow you to schedule posts like that, using a date stored in a custom field. You can collect the data with Gravity Forms (the post date) but you will have to do the work to ensure it shows only after that date.

    2. Not built in. But you could do it using the hooks built in to Gravity Forms. You'd could use custom validation (there is a filter gform_validation) and in that, check for how many posts were already made, in whatever time frame, then return a validation error. Or, you could run something before displaying the form, to make it unavailable once your limit has been reached. It can be done, but it's not built in.

    3. The date picker is the default jQuery date picker, and it does not have that functionality. You can disable certain dates, but it does not have a concept of a filter for available dates, I don't think.

    I don't think Gravity Forms will do all the things you need, right out of the box. You will need to do some work to accomplish them. Some of the things you describe are fairly complex customization and would require a fair bit of code. I hesitate to say that Gravity Forms will work for you without knowing more about your PHP knowledge and willingness to dig in.

    Posted 12 years ago on Thursday November 24, 2011 | Permalink
  3. branis
    Member

    Thanks for your reply.
    I don't know much about php, just a few basic things, but I know someone who should be able to make the customization I need.

    I just played with the demo and I saw a check-box named "No Duplicates" in the Date field. The info box says: "Select this option to limit user input to unique values only. This will require that a value entered in a field does not currently exist in the entry database for that field."
    I think I might be able to use that option to limit the number of posts to one per day, if I use the date from the form to replace the original post date.

    Posted 12 years ago on Friday November 25, 2011 | Permalink