Buy Now
Sign in

Include {tag} in onSubmit page

bobsmith , January 02 2008, 06:05
B
bobsmith 1
January 02 2008, 06:05 #4718
I want to create "Thank you" page after the email is sent, to say something like "Thank you for registering for {name_of_event}".

I click on the "Form Code" tab, then open the "On Submit code - after sending email:" section to input the html for my thank you page.

As part of my message I included the {event} tag, which I successfully used in the email template section, but it doesn't seem to work in my "Thank You" page.

Do the {tags} from the email template page not work in these other sections (under the "Form Code" tab)?
GreyHead 64
January 02 2008, 16:29 #4721
Hi bobsmith,

The '{event}' tags only works in the 'Special fields' Tab and the Email Template.

You can get the same result with a little PHP in the OnSubmit field though - try
<?php echo $_POST['event']; ?>
Note: you can see the $_POST values by turning on debug in your form.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
B
Beata 56
January 19 2008, 15:11 #5035
OK,

should I prepare some special Thank you page?
How will form catch it?
B
Beata 56
January 19 2008, 16:33 #5038
I have created new Joomla page in my website with these codes;

<meta http-equiv="refresh" content="5 ; url=http://www.genealogija.lt" >
<title>Thank You.</title>
<p>
<h3 align="center">
A&#269;i&#363; !<br />
J&#363;s&#371; užsakymas bus perduotas genealogams<br />
</h3>


Then opened my form in Chronoform manager and put these codes with link to that page(I am not sure what I should put)

<input type="hidden" name="reply" value="http://genealogija.lt/index.php?option=com_content&task=view&id=163">


This gave me nothing<br><br>Post edited by: Beata, at: 2008/01/19 11:34
GreyHead 64
January 19 2008, 19:10 #5039
Hi Beata,

You'll find a simple way of creating a thank you page in this FAQ. Basically put the code you have in the first box into the 'On Submit after email' box in ChronoForms.

I see that you want a redirect too, that should be possible. I'll experiment and post a follow up message here.

Bob

PS I looked at your site which looks very good. But in FireFox the page refreshes before it has completed loading which makes it close to impossible to use. You have a lot of Javascript in there and I guess that there may be a conflict somewhere.
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
GreyHead 64
January 19 2008, 20:37 #5040
Hi Beata,

To show a Thank You page and then redirect please put this code in the 'On Submit after email' box:
<?php
global $mainframe;

$custom_tag = '<meta http-equiv="refresh" content="5; url=http://www.genealogija.lt" >';
$mainframe->addCustomHeadTag($custom_tag);
?>
<title>Thank You.</title>
<h3 align="center">A&#269;i&#363; !<br />
J&#363;s&#371; užsakymas bus perduotas genealogams</h3>
Bob

PS If you just want to redirect without showing the Thank You page then you an use the Form URLs | Redirect URL box.
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
B
Beata 56
January 20 2008, 02:36 #5048
Thank you very much for good advices and for quick help

It works with redirection and without it

I left without, after submitting form I get clean page with Thank you sentence

This is what wanted, because it is strange when submit form and don't get some answer only clean page

I have still one silly problem but this isn't about chronoforms... the whole day I am trying to adjust my form in the middle of page but which width I don't choose my form remove right border bellow. I tried 550 and 400 px, I tried table without width and it is the same. Something extend and I can't find what....
see this page

Thank you again for help

Edited to add url tags<br><br>Post edited by: GreyHead, at: 2008/01/19 23:35
GreyHead 64
January 20 2008, 04:52 #5052
Hi Beata,

I took a quick look but don't see anything obvious wrong. Sorry.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
B
Beata 56
January 20 2008, 16:12 #5053
It isn't good and I think I should do some corrections in CSS or in template

Today a thought came me into break, that form is too long and maybe I should add some codes after right column or after centered content like style="clear or what I don't know, but realy no other long page, for instance http://genealogija.lt/index.php?option=com_content&task=view&id=147&Itemid=134 don't make such things with right column and what can be here I don't understand, because your sample form don't make such things

I don't think that here is fault of chronoforms. I strived to do a form more narrow, but this gave me no results

Sorry, that I border your head, I am going to investigate how improve this.... <br><br>Post edited by: Beata, at: 2008/01/20 11:13
B
Beata 56
January 20 2008, 16:21 #5054
I solved it in this way: in page with form I have deactivated two top positions: "Latest news" and "Popular links"

Now is OK
GreyHead 64
January 20 2008, 19:50 #5059
Hi Beata,

Well done, glad you found an answer.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much