Have you ever wanted to have a form submit to back to its own page, and have a success message in place, as opposed to having generic thank you page (useful for edit forms especially, when the user might want to do successive edits lets say)?
Now you can do it like this:
{exp:comment:comment_form}
{exp:flash_msg msg='<span class="success">Comment submitted succesfully!</span>'}
......
{/exp:comment:comment_form}
and then anywhere on that template you can put the variable {flash_msg} which will output this message only if the form was submitted succesfully (meaning that you weren’t taken to an EE error page).
This plugin is also accompanied by an extension which does some dirty work in the background…
If you want to read about the technical details of the implementations, you can read here:
http://www.aviblock.com/blog/2009/05/07/flash-messenger-for-expression-engine/
Hope you find this useful!
After submit I am being sent to my default page and not back to the form. I am using this with the {exp:weblog:entry_form} not sure if it works with that tag. Here is the example of how I am using it.
{flash_msg}
{exp:weblog:entry_form weblog="blog" name="Blog"}
{exp:flash_msg msg="Form Submitted Succesfully!"} ...
After submit I am being sent to my default page and not back to the form. I am using this with the {exp:weblog:entry_form} not sure if it works with that tag. Here is the example of how I am using it.{flash_msg} {exp:weblog:entry_form weblog="blog" name="Blog"} {exp:flash_msg msg="Form Submitted Succesfully!"} ...
I think you’re missing the “return” parameter…
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.