Forums

Image uploads error erases the filled form

toydollmn 22 May, 2010
Hi everyone. Thanks for this great component. I am trying to create a form with a field to upload images. Everything works perfect. The validations works perfect too but i have an usability issue.

Let's suppose i hace an upload size limit of 1mb but one of the users on my site just fill the form and never noticing that they are trying to upload a 2 mb file: The user will get an error saying that he can't upload this file size. BUT when he receives the message telling that he made a mistake the complete form is erased and he will have to start filling the form again.... Now the question is:

How can i make my forms stay filled just letting my user know that there was an error and please choose a new file to upload the entire form again, jus fix the uploaded file? My users are getting upset because they spend time filling the complete form and if a validation error ocurs when trying to upload images they will have to start the complete proccess again, so they just leave the site and i lost valuable information.

Can anyone help me? What is the code that I have to use for that and where can I paste it?
GreyHead 22 May, 2010
Hi toydollmn,

On the Form General tab set "Republish fields if error occured" to "Try to republish"

Bob
toydollmn 24 May, 2010
Thanks a lot Bob, is working fine right now. I am only having one issue now. When the error occurs, trying to republish the form the email field gets this script instead of the published email:

<script language='JavaScript' type='text/javascript'>  <!--  var prefix = 'mailto:';  var suffix = '';  var attribs = '';  var path = 'hr' + 'ef' + '=';  var addy70478 = 'sergio' + '@';  addy70478 = addy70478 + 'gmail' + '.' + 'com';  document.write( '<a ' + path + '\'' + prefix + addy70478 + suffix + '\'' + attribs + '>' );  document.write( addy70478 );  document.write( '<\/a>' );  //-->  </script> <script language='JavaScript' type='text/javascript'>  <!--  document.write( '<span style=\'display: none;\'>' );  //-->  </script>Esta dirección electrónica esta protegida contra spambots. Es necesario activar Javascript para visualizarla  <script language='JavaScript' type='text/javascript'>  <!--  document.write( '</' );  document.write( 'span>' );  //-->  </script>


Maybe, do you know why this happens?

Sergio
GreyHead 24 May, 2010
Hi Sergio,

This looks like the Joomla Email Cloaking plugin.

Disable it to test.

If it is the cause then usually having it run before the ChronoForms Plugin will fix the problem.

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