Test form OK ... into site no actions and mail

andrea76 03 Oct, 2014
Hi, I try to find answert but my problem persist.๐Ÿ˜ˆ

Situation: Joomla 3.3.1 with ChronoForms 5
I have only one form, very easy: ON LOAD (Html render) - ON SUBMIT (email and message)
when I make test I have correct message and email, perfect!๐Ÿ˜€
When I try from site page... nothing! No error on debug, but no actions before submit. :?

PS before submit, one field will be empty, others no and don't change page for message and mail.

I find a similar discussion where written about
setup - onload - html render form - relative url = no
but no result.

My Joomla config have URL SEF activated with rewite and suffix URL on.
I use .htaccess base, only rewriteengine on.

Any ideas? Help! :?
GreyHead 03 Oct, 2014
HI andrea76,

Please post link to the form.

Bob

PS The test page is a site page.
andrea76 06 Oct, 2014
TEST PAGE ๐Ÿ˜€
http://www.bressandaniele.it/new/index.php?option=com_chronoforms5&chronoform=Richiestaprezzo

SITE PAGE ๐Ÿ˜Ÿ
http://www.bressandaniele.it/new/acquista.html
andrea76 07 Oct, 2014
Before writing post, I search a system to debug and I used
<?php
$mainframe =& JFactory::getApplication();
$mainframe->enqueuemessage('$form->data[input_name]: '.print_r($form->data['input_name'], true).'<hr />');
?>

into CODE => "custom code"

I try also debugger in SETUP "on submit" after mail.

There is another system to make throubleshooting?
GreyHead 07 Oct, 2014
Hi andrrea76,

It's a problem with the SEF URLs. If you submit the form from the ChronoForms URL then it submits correctly.

If you use the SEF version then it does not Submit at all but just re-loads.

Please try setting Relative URL to No in the HTML (Render Form) action and then look at the page HTML of the form and see what the Action URL is. You will find it in the <form . . . > tag
<form action="/new/acquista.html?chronoform=Richiestaprezzo&event=submit". . . >


Bob

PS There is also a JavaScript error on the page which is stopping the validation working. I think that is because you have only copied a part of the ChronoForms HTML for the inputs into your custom code.
andrea76 07 Oct, 2014
Thank's for reply.

Joomla update to last version 3.3.6
Form "Richiestaprezzo" settings:
Code => Form type: Wizard designer (I change for delete javascript error)
Setup => HTML (Render Form):
1 - Action URL = empty
2 - relative url = NO

I understand SEF rewrite URL: now the submit re-load page and don't make actions...
Unfortunately I don't understand how to use the Action URL field๐Ÿ˜ข
=====
SITE: http://www.bressandaniele.it/new/acquista.html
Before Submit: http://www.bressandaniele.it/new/acquista.html?chronoform=Richiestaprezzo&event=submit
--------
TEST: http://www.bressandaniele.it/new/index.php?option=com_chronoforms5&chronoform=Richiestaprezzo
Before Submit: http://www.bressandaniele.it/new/component/chronoforms5/?chronoform=Richiestaprezzo&event=submit
=====
GreyHead 10 Oct, 2014
Hi Andrea,

The form action is still set to the SEF URL :-( exactly as it was before.

Please check for any System Plug-ins that are re-writing URLs and turn them off to see if that is the problem.

If you have Relative URL set to No then ChronoForms is adding the correct URL and something else on your site is then changing it.

Bob
This topic is locked and no more replies can be posted.