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.

How to Customize Validation Message to Show New Post?

  1. I am using Gravity Forms so my logged in users can publish new posts without going to the dashboard. It is working beautifully so far! I was struggling with TDO Mini Forms so am thankful this worked right out of the box for what I needed it to do.

    i just want to make one little tweak and not sure how to do it. Right now it says "Thank you, your entry was submitted" after someone submits their post - is there a way to customize this so it would link to the new post that has been published?

    Thanks!
    Chelle

    Posted 13 years ago on Wednesday January 5, 2011 | Permalink
  2. Hi Chelle,

    We have not added this token yet; however, it is a simple matter to add this as a custom token with a little code.

    Step 1 - Paste the following code into your functions.php file: http://pastie.org/1433007

    Step 2 - Add the {post_url} custom token in the confirmation message wherever you would like the URL to be output. More than likely you will want to add it as the href attribute of a link like so:

    View your post <a href="{post_url}">here!</a>

    That's it! :)

    Posted 13 years ago on Thursday January 6, 2011 | Permalink
  3. Wow, that was easy! Worked perfectly :)

    Posted 13 years ago on Wednesday January 26, 2011 | Permalink