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.

Dropdown of users as Post Author

  1. I'm trying to set up a form for Editor users to create entries and assign them to a certain author, in front-end view.

    I do not know if it can be done with GF, as I cannot specify an input value for post author. Could you point me in the right direction?

    Posted 12 years ago on Monday October 29, 2012 | Permalink
  2. I think this documentation will help:
    http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields

    That example shows how to dynamically populate a drop down with post titles. You will need to change the code to retrieve authors.

    You can also read related posts:
    http://www.gravityhelp.com/forums/search.php?q=Dynamically_Populating_Drop_Down_Fields

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  3. Chris, this helped a lot. However, I'm unable to achieve what I need.
    I'm new to GF so bear with me

    I'm working with GF and this two plugins:
    http://wordpress.org/extend/plugins/gravity-forms-update-post/
    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

    I set up a form with some custom fields. My goal is for an editor user to create/edit some cutom posts, and assigning it to a diferent Author user.

    I can create and edit post easily, but I'm not able to change the post author value on submit. I tried to set useCurrentUserAsAuthor as 0, and postAuthor with the ID of a selected user, but it always keep the original user as Author.

    Maybe there is a better way to acomplish this?

    Posted 12 years ago on Wednesday November 7, 2012 | Permalink
  4. You can change the author of a post after the form is submitted by using the gform_after_submission hook. http://www.gravityhelp.com/documentation/page/Gform_after_submission

    The example there shows updating the post content, but you can update the post author in the same manner.

    Posted 12 years ago on Thursday November 8, 2012 | Permalink