Forums

E-mail field gets refilled with javascript code?

MauriceW 14 Sep, 2012
Hi,

I have four fields in my form: name, email, question and a ReCaptcha field. I use the latest version of Chronoforms at the moment of writing this topic (v4.0 RC3.5 on Joomla 2.5.6).

When I enter all fields correct except the ReCaptcha field, after submitting, the page submits and comes back with the message that the ReCaptcha was entered incorrect. Then all fields are refilled again with their data, however the E-mail field contains a bunch of javascript code:


<script type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy28513 = 'maurice' + '@'; addy28513 = addy28513 + 'wasbauer' + '.' + 'nl'; document.write('<a ' + path + '\'' + prefix + ':' + addy28513 + '\'>'); document.write(addy28513); document.write('<\/a>'); //-->\n </script><script type='text/javascript'> <!-- document.write('<span style=\'display: none;\'>'); //--> </script>Dit e-mailadres wordt beveiligd tegen spambots. JavaScript dient ingeschakeld te zijn om het te bekijken. <script type='text/javascript'> <!-- document.write('</'); document.write('span>'); //--> </script>


Of course I just want it to refill this email field with the email address that was filled in before the submit button was hit, just like the name field and the question field are filled with their data.

What's wrong here?

Kind regards,
Maurice
tlegens 14 Sep, 2012
MauriceW, it sounds like a plugin ordering issue. Go to your Joomla plugins, filter the list to just show content plugins. Make sure your chronoforms plugin is below the Content-Joomla plugin. That should do it for you.
MauriceW 14 Sep, 2012
Hi Tlegens,

That was it! Fantastic. Problem solved. You made my day!😀

Thank you,
Maurice
tlegens 14 Sep, 2012
You're welcome! 😀
This topic is locked and no more replies can be posted.