Forums

Display thank you message above form

lw_d 14 Sep, 2008
Hi all,

Instead of directing to a thank you page on submit, I was wondering if there is a message that could shown above the form, similar to the mootools validation that is available (the required text fades in if there is not text within a required field).

Great component by the way

Thanks
Lee
GreyHead 14 Sep, 2008
hi lw_d,

You can show any html+php+javascript that you like above your form. You just need to find or write the code and add it into the Form HTML box.

If you want to re-show the form after completion then you can use the showForm() function in ChronoForms to redisplay it and use some indicator in your form code to say that the message should be displayed.

Or you could use the Joomla $mainframe->enqueuemessage() function with some javascript/css that willl have it fade after display.

Bob
Max_admin 14 Sep, 2008
Hi lw_d,

you can also try this at the onsubmit after email :

<?php

$mainframe->redirect("form_link_goes_here", "Thanks we received your submission");

?>
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
lw_d 15 Sep, 2008
Thanks I will try those, if anyone has already implemented this be sure to let me know.

Thanks
Lee
petervanwesten 22 Sep, 2008
You will probably have to add this above the redirect line:
global $mainframe;
dgproyekto 15 Oct, 2008
Thanjk you it worked
Now i want it after it went to the page with the onsubmit code before sending email i want it to go to diplay a thank you message and then go back to home page.
So i have the form page(form html) confiirmation page(onsubmithcode before sending e mail) and now i want to go to a page with a thank you message.
dgproyekto 15 Oct, 2008
When i put that code it gives me page not found but when i connect back to the form page it gives me the(Thanks we received your submissio) message. Could you please tell me what i'm doing wrong??
Max_admin 15 Oct, 2008
hi, create a complete new form with the thank you and use my line of code above, just point to a new form!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.