Forums

"Submit" does not work, javascript error in email field

Cinzano 05 Apr, 2013
Hello!
I am very new at creating a form and don't know what to do now.
My form does not send me an e-mail whenever I click on "Submit".
In the Test Mode (in the backend) it works but not from my frontend.
There is also a javascript error message, when an e-mail adress is inserted in the respective textfield.
I don't know what it means and how I could fix that.
Here is a link to the form:

http://www.portraitfotograf-berlin.de/index.php/preis-anfrage

I am working with Joomla 3 and I don't see any "event" button where I could fill out a "on submit" action in my Chronoforms backend.

I just looks completely different as in the tutorials I found so far.

What can I do?
GreyHead 05 Apr, 2013
Hi Cinzano,

You appear to be adding your own <form> tags
<form action="#" class="box">
These have no action or method and won't submit the form to ChronoForms - so no email or anything else.

The form you see from the 'Test Form' link is on the front-end of your site but shown without the template for simplicity.

If you are using the Easy Wizard there is an 'Others' tab where you can add extra code.

Bob
Cinzano 05 Apr, 2013
Thank you!

Alright, now I am one step further.

I can send the form and there is no error message anymore.

New problems:

1. Only the first 8 fields show up in the table which I get sent to my e-mail. There are 10 fields in my form.

2. In the e-mail I receive there are values as follows:
choice 1 choice 2 etc. Is it possible to see the actual values I have on my frontend?

3. How can I arrange it that the sender gets an e-mail too? I tried with one of my own e-mail adresses but it didn't work.

4. How is the syntax in the "Other" field. The result should look like that in the frontend:
<form class="box" action="#"><fieldset><legend>Hier Preis anfragen<br /> </legend>
{chronoforms}formxyz{/chronoforms}</fieldset></form>
What do I put in the Other field?

Many thanks in advance!!
GreyHead 05 Apr, 2013
Hi Cinzano,

1) I can't tell from here. Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.

2) You can probably change the options to be similar to the values for example
meine Schwester=meine Schwester
meinem Hund=meinem Hund


You may need to add a Handle Arrays action if you are using the Form Wizard (not the Easy Wizard).

3) Please see this FAQ

4) Sorry but I don't understand your question here.

5) Please see this FAQ about script in the Email input.

Bob
Cinzano 05 Apr, 2013
No.1 is solved 😀
Somehow my table in the Auto Template didn't include the last instances of my form.
Still interested about the other 3 issues... 8)
Cinzano 05 Apr, 2013
Wow, we posted at the exact same time.😀
Nearly all issues are solved now.
This is really a super support here!!
What I meant with my other question:
I work with the Chronoform-plugin here and in the article (in Joomla) it looks like that:
<form class="box" action="#"><fieldset><legend>Hier anfragen<br /> </legend>
<p>* Pflichtfelder</p>
{chronoforms}formxyz{/chronoforms}</fieldset></form>


Unfortunately, this does not send any e-mails (as you said, because of the additional code)

Instead, you said that it has to be done with the "Other"-field.
But how should I do it?

I really would like to have the form look like this:
http://www.portraitfotograf-berlin.de/index.php/kontak-test

--> But of course it has to work and send the e-mails...
GreyHead 05 Apr, 2013
Hi Cinzano,

You only need this in the article {chronoforms}formxyz{/chronoforms} Do not add the <form> tags!!

You could possibly add the fieldset tags but that would be better in the form.

Test that the form works using the Tst view and/ or Frontend View links before testing with the Plug-in code so that you know where the problems are.

Bob
Cinzano 05 Apr, 2013

You could possibly add the fieldset tags but that would be better in the form.


How and where could I do that exactly?
GreyHead 05 Apr, 2013
Hi Cinzano,

If you were starting a new form I'd add a Container element from the Advanced actions group - that has a Fieldset option. With an existing form you can add Custom Element elements at the beginning and end of the fieldset and add the tags to those - check the Pure Code box to stop ChronoForms adding it's layout divs as well.

Bob
Cinzano 09 Apr, 2013
Thanks for the excellent support.
Everything is fine now!
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}