Forums

Form setup

Sean 24 Jan, 2007
Hi. First off, this looks like a very cool tool. If I can get this to work, it is exactly what I need.

My question is with the setup, especially what to put in the JavaScript field and what to use as an email template.

I'm trying to use a bunch of forms that I inherited that were done with Dreamweaver and FormMail.php v5.0

Here is what I was able to do.
1. Copy and pasted the html from Dreamweaver into the Form HTML field.

2. Filled in fields for redirect url, email the results, email addresses, and email subject. These all worked fine.

3. In the Submit Code field, I loaded the FormMail form into Dreamweaver and cut and paste the code into this field.

4. i left the last three fields blank.

I was able to run the form, I filled out fields and submitted it. I even reeived the email, but it was blank.

Here are my questions;

A)Should I have something to put in the Form Javascript field?

B) Do i need to put anything in the Form Tag Attachment o the Submit URL?

C) I put this in the email field:
<p>
{firstname}<br />
</p>
but nothing was returned. Is this the correct format?


This tool seems very good, I was especially surprised at being able to configure the look of the email as well. Everything else I have tried overlooked this part.
If you can offer any help on this I would greatly appreciate. Even a few example forms that I could look at might help.

Thanks for reading this,
Sean
Max_admin 24 Jan, 2007
Hi Sean,

First thank you, 2nd, did you read all the tooltips at the left hand side of each item in the form edit page ? many people miss this, they have much info, but lets go with ur questions :


what to put in the JavaScript field and what to use as an email template.

the javascript field will have any javascript functions u have without <script> tags.
the email template will have the template you like for the email and placeholders for submitted elements data.

3. In the Submit Code field, I loaded the FormMail form into Dreamweaver and cut and paste the code into this field.


Indeed I dont know whats formmail, but submit code can contain something like :

<?php echo "We will get back to you soon" ?>

this will show "we will get..." after the form is submitted, you can also write a few php lines to insert data in the database table you want, I used it to insert data into Virtuemart.

Do i need to put anything in the Form Tag Attachment o the Submit URL?

as you wish, I use this to put something like : onSubmit="checkvalues()" and put the checkvalues() function in the javascript field

<p>

{firstname}<br />

</p>

Do you have the email set to email template in the global configuration page of ChronoForms ? if not then this will have no effect.

Hope I could help, feel free to reply.:)

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.