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.

Show submitted post to poster (like in comments)

  1. Lea Cohen
    Member

    Our customer would like the form to submit a post, and until the post is approved by admin - show that post to the submitter, with a comment that the post is waiting for approval. Just the way comments work, when they need approval - the person who created the comment can always see it even before it has been approved.

    Is there a way to do that? If it requires customization, I would appreciate it if you could give me the details.

    Posted 12 years ago on Monday June 6, 2011 | Permalink
  2. Good question, i'm not sure if this is possible or not. It might be possible if the Post is a draft and the person submitting the form is logged in and set as the author of the post. What you will need to do to see if it possible is:

    - Create a form that creates a post with a Draft post status
    - Set the Post Author option on the Post Title field so that it uses the user of the logged in user as the author.
    - Login to your site using a user account with the Subscriber role
    - Submit the form
    - Get the Preview URL for the post that was created, to get this you may need to login to your site as an Admin and view the Draft post and then preview/view the Draft post and get the URL
    - Try accessing that URL when logged in as the Subscriber

    Other than that there is probably no way to do what you described given how WordPress handles Draft posts.

    Posted 12 years ago on Monday June 6, 2011 | Permalink
  3. Lea Cohen
    Member

    I found a simple solution, using the redirect at confirmation. I'm also using the User Registration Add-on in this form, so the user is already created and logged in by the time we get to the confirmation:

    1. In the Form Settings, I go to the Confirmation tab.
    2. There, in the Confirmation Message I choose Redirect.
    3. In the text input I put the url of my site.
    4. Then, I click on "Pass Field Data Via Query String"
    5. I pass the post_id as "p",
    6. This results in address like this: http://my.site.name/?p=20 (the 20 is just an example), which is the address of the post draft .
    7. This is the address of the post just created, and since - as said above - the user is already logged in, he/she can be redirected to this address and see their post.

    Posted 12 years ago on Thursday June 9, 2011 | Permalink

This topic has been resolved and has been closed to new replies.