Online Chat
 Call Us: 
1-877-744-1221
Browse Submit a Ticket
 
Advanced Search
Tools
Rss Categories

No Thank You page

Author: Edward Hardin Reference Number: AA-00727 Views: 7465 Last Updated: 01/28/2013 03:24 PM 0 Rating/ Voters

You can display a message that form submission has been successful on the very first form page without taking user to a Thank You page after submission. For this you need to do the following.

Add this code to the form source to the place where you wish to display the message:

<!-- FPP_SUCCESS -->

Perhaps, you would like to add it right next to <!-- FPP_ERROR -->.

Then you need to add the message itself to the config.php:

success_message = <font color="green">form is sent</font>

As you can see, you can use HTML code in your message. 

You can set this option globally for all forms (by adding it within the global settings section at the top of the config.php) or locally for a particular form (if you add it to the form settings section).

Then duplicate the last 'page' entry (it is usually the only entry for this kind of one-page forms) in the config.php to tell FPP that it needs to stay on that page. So, if you had this line pointing to:

page = http://www.mywebsite.com/form/page.html

made it double:

page = http://www.mywebsite.com/form/page.html

page = http://www.mywebsite.com/form/page.html