Forums

Chronoforms error-message from capcha

poke 14 Aug, 2010
Hi

I use with ChronoForms (3.1 RC5.5 (Joomla 1.5.17)) a form with captcha.
If the Captcha code is entered incorrectly, an error message displayed. As far as everything fits!

The form is connected to the chronocontact plugin embedded in a document and is
a little further down, so outside the visible area immediately. Since the error
the captcha is displayed immediately above the form and the page after the
refresh is triggered again at the top is not the error in the visible Area!

This, overlooks the "Form Filler" the error message and could assume that the form has been sent correctly.

Does anyone have a solution for this situation or statement?

**
sorry, is translated with google! ;-)

René 😀
GreyHead 14 Aug, 2010
Salut René,

There is no easly answer to this. ChronoForms used to use System Messages which display at the top of the page but too many templates don't display them at all.

I guess I'd probably add a JavaScript snippet to detect the message and either move it to the top of the page or show a warning there.

Bob
poke 14 Aug, 2010
Salut Bob
Did you mean this? <jdoc:include type="message" />

Its in my template that is right in front of the content, but the capcha message still appears just above the form.

So it looks in my template:
<div id="thema2">
<jdoc:include type="message" />
<jdoc:include type="component" />
</ Div>

René
:-)
GreyHead 15 Aug, 2010
Hi René,

. . . yes, but ChronoForms no longer uses System Messages. That's why you'd need to use a JavaScript snippet.

Bob
poke 15 Aug, 2010
Hi Bob

Forgive my question, but my English is not so good. Do you think that you create a javascript to do so or should I take an existing one on the great Joomla-fund? 😑
looking for what would I? 😀
René
__
incidentally.. thanks Bob for your great work and support with chronoforms!!
which must again be said!
GreyHead 29 Aug, 2010
Hi poke,

If you put a message into the page near the top like this:
<div id='form_error' style='display:none;' >There was a problem with the form submission, please scroll down and fix it</div>
(You can do this in your template or a Custom HTML module.)

Then add this script to the Form JavaScript box for your form.
window.addEvent('domready', function() {
  if ( $$('span.cf_alert').length > 0 ) {
    $('form_error').setStyle('display', 'block');
  }
});

Bob
poke 29 Aug, 2010
Hi SuperBob
You are definitely the greatest! It works perfectly! ;-)
Thank you!

Best regards
Poke

..i love chronoforms! 😀
This topic is locked and no more replies can be posted.