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.

Can a form create a post without having the user edit it?

  1. [sorry I mistakenly posted first under News and Announcments, please delete]

    I think I understand the post fields, they fulfill the feature of have a form that creates a post. What I was hoping for though was that I had a form with required fields and when the user submitted the form, it would create a post with the data from those required fields. Instead, this prompts the user to fill in the post fields separately.

    I think I have enough to get started with the filling of the post fields based on other answers here with some code snippets. What I don't grok is how to keep the post fields hidden so the person filling out the form doesn't think they should write in the post fields themselves. So I can populate the post title and body from code, but I don't want the post fields on the form visible to the user.

    Ideas?

    Posted 14 years ago on Friday November 13, 2009 | Permalink
  2. Currently this isn't possible as the Post Title and Post Body cannot be hidden.

    But what you could do is add the Post Body and Post Title to the form, and then use CSS to hide those particular fields. Then you can populate them using the hooks when the form is submitted.

    Gravity Forms 1.3 is getting ready to be released and will add the ability to have hidden custom post fields, although it still won't be possible to set the Post Title or Post Body to be a hidden field.

    Posted 14 years ago on Friday November 13, 2009 | Permalink
  3. OK, I'll have to pursue this a different way then.

    Posted 14 years ago on Friday November 13, 2009 | Permalink
  4. I'm running 1.3.13.1 and don't see how to hide custom post fields. Did this feature not make it in after all?

    Posted 13 years ago on Thursday August 5, 2010 | Permalink
  5. This capability will be in the 1.3.14 release that is currently in development. There will be an option to set the Visibility for these fields to Admin Only which effectively hides them from the front end.

    Posted 13 years ago on Thursday August 5, 2010 | Permalink
  6. Thanks Carl. I'll just hide them with styles until then.

    Posted 13 years ago on Thursday August 5, 2010 | Permalink