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.

Edit a Post

  1. Is it possible to edit a post using a GF form?

    Posted 13 years ago on Thursday August 12, 2010 | Permalink
  2. It's possible, but it isn't a built in feature. It would require extensive customizations to pull it off. Gravity Forms is designed to create data and posts, not replace the built in WordPress post editor.

    Posted 13 years ago on Thursday August 12, 2010 | Permalink
  3. If yes, how? Does anyone has tried it out?

    Posted 13 years ago on Saturday August 14, 2010 | Permalink
  4. Yes, i'm aware of people that have done it. You have to pre-populate the form with the existing post data and then when the form is submitted you have to manually update the existing post with the updated information and then delete the new post that is created by he new form. I don't recommend it. It would be an advanced customization and it would probably be easier just to create your own custom solution to edit an existing post or use role management plugins to give them access to edit their posts in the WordPress dashboard.

    Posted 13 years ago on Monday August 16, 2010 | Permalink
  5. thefidler
    Member

    Carl

    I understand that you do not recommend it but if I want to "manually update the existing post with the updated information and then delete the new post "? Can i assume that we can update the original entry using the gform_pre_submission hook and not save the new entry at all?

    Currently I have done the first part - "pre-populate the form with the existing post data". The problem is that if I have fields use the unique feature I cannot save the new entry because the data is the same as the existing entry. So I need a way to be able to do both - use the unique feature and edit data from a current post.

    Thanks in advance

    Posted 13 years ago on Friday August 20, 2010 | Permalink
  6. You would have to write PHP using the submission hooks to update the existing entry. You would have to do this manually. The alternative is to delete the old entry and create a new entry. So you would pre-populate the form, when it's submitted it would delete the old entry and then a new entry would be created.

    Posted 13 years ago on Monday August 23, 2010 | Permalink