Forums

List validation not working using Joomfish

zaner 20 Apr, 2010
I translated Concact form using Joomfish. In spanish (original version) validation works fine, but in english, on list items, it did not work.
English link:
http://www.laboratoriosmicrosules.com/en/contacto.html
Spanish link:
http://www.laboratoriosmicrosules.com/es/contacto.html

I used this xml to translate the form:
<?xml version="1.0" ?>
<joomfish type="contentelement">
  <name>Chronoforms Forms</name>
  <author>Patrick Weiss</author>
  <version>1.0.4</version>
  <description>Translation of the forms of the component ChronoForms</description>
  <reference>
  	<table name="chrono_contact">
  		<field type="referenceid" name="id" translate="0">ID</field>
  		<field type="titletext" name="name" translate="0">Name</field>
  		<field type="htmltext" name="html" translate="1">HTML</field>
  		<field type="textarea" name="scriptcode" translate="0">Scriptcode</field>
  		<field type="textarea" name="stylecode" translate="0">Stylecode</field>
  		<field type="text" name="redirecturl" translate="1">Redirect URL</field>
  		<field type="text" name="emailresults" translate="1">Email results</field>
  		<field type="text" name="fieldsnames" translate="1">Fields names</field>
  		<field type="textarea" name="fieldstypes" translate="1">Fields types</field>
  		<field type="textarea" name="onsubmitcode" translate="0">Onsubmit code</field>
  		<field type="textarea" name="onsubmitcodeb4" translate="0">Onsubmit code b4</field>
  		<field type="textarea" name="server_validation" translate="0">Server validation</field>
  		<field type="textarea" name="attformtag" translate="0">ATT form tag</field>
  		<field type="text" name="submiturl" translate="0">Submit URL</field>
  		<field type="text" name="emailtemplate" translate="0">Email template</field>
  		<field type="htmltext" name="useremailtemplate" translate="1">User email template</field>
  		<field type="textarea" name="paramsall" translate="1">Params all</field>
  		<field type="textarea" name="extravalrules" translate="0">Extra val rules</field>
  		<field type="textarea" name="dbclasses" translate="0">DB classes</field>
  		<field type="textarea" name="autogenerated" translate="0">Auto generated</field>
  		<field type="textarea" name="chronocode" translate="0">Chrono code</field>
  		<field type="text" name="theme" translate="1">Theme</field>
  		<field type="text" name="published" translate="1">Published</field>
  		<field type="text" name="extra1" translate="0">extra1</field>
  		<field type="text" name="extra2" translate="0">extra2</field>
  		<field type="text" name="extra3" translate="0">extra3</field>
  		<field type="text" name="extra4" translate="0">extra4</field>
  		<field type="text" name="extra5" translate="0">extra5</field>
  	</table>
  </reference>
</joomfish>


Form Code:
<h1 class="contentheading">Contact  Laboratorios Microsules Uruguay S.A.</h1>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td rowspan="6" valign="top" width="40"><img src="images/M_images/con_address.png" alt="Dirección: " /></td>
</tr>
<tr>
<td valign="top">Ruta 101 Km 28 Camino al Paso Escobar s/n</td>
</tr>
<tr>
<td valign="top">Canelones</td>
</tr>
<tr>
<td valign="top">91001</td>
</tr>
<tr>
<td valign="top">Uruguay</td>
</tr>
</tbody>
</table>
<br />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="40"><img src="templates/gk_car_magazine/images/emailButton.png" alt="Correo electrónico: " /></td>
<td><a href="http://mailhide.recaptcha.net/d?k=01b-UcTw5WsJfp1m2U6LZhfA==&c=skpiTrXn0VPq3HDPdLrYwnJDEucgIHcW-EAsqua_Sz4=" onclick="window.open('http://mailhide.recaptcha.net/d?k=01b-UcTw5WsJfp1m2U6LZhfA==&c=skpiTrXn0VPq3HDPdLrYwnJDEucgIHcW-EAsqua_Sz4=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Mostrar esta dirección de Email">i...@laboratoriosmicrosules.com</a></td>
</tr>
<tr>
<td width="40"><img src="images/M_images/con_tel.png" alt="Teléfono: " /></td>
<td><span>00598 2 2886761</span></td>
</tr>
<tr>
<td width="40"><img src="images/M_images/con_fax.png" alt="Fax: " /></td>
<td><span>00598 2 2886760</span></td>
</tr>
<tr>
<td width="40"></td>
<td><a href="undefined" target="_blank"> http://www.laboratoriosmicrosules.com</a></td>
</tr>
</tbody>
</table>
<br />
<p> </p>
<table cellspacing="1">
<tbody>
<tr>
<td width="150"><label for="Nombre">Name* </label></td>
<td><input name="Nombre" id="Nombre" size="40" maxlength="50" title="Insert your Name" type="text" /></td>
</tr>
<tr>
<td width="150"><label for="Apellido"> Last Name*</label></td>
<td><input name="Apellido" id="Apellido" size="40" maxlength="50" title="Insert your Last Name" type="text" /></td>
</tr>
<tr>
<td><label for="email"> E-Mail* </label></td>
<td><input name="email" id="email" size="40" maxlength="100" title="Insert your E-mail" type="text" /></td>
</tr>
<tr>
<td><label for="telefono">Phone*</label></td>
<td><input name="Telefono" id="JU_id_telefono" size="20" title="Insert your Phone" type="text" /></td>
</tr>
<tr>
<td><label for="pais">Country*</label></td>
<td><select name="Pais" id="Pais" title="Insert your Country"> <option selected="selected"> - Choose -</option> <option value="Afghanistan">Afghanistan</option> <option value="Albania">Albania</option> <option value="Algeria">Algeria</option> <option value="American Samoa">American Samoa</option> <option value="Andorra">Andorra</option> <option value="Angola">Angola</option> <option value="Anguilla">Anguilla</option> <option value="Antigua">Antigua</option> <option value="Antilles">Antilles</option> <option value="Argentina">Argentina</option> <option value="Armenia">Armenia</option> <option value="Aruba">Aruba</option> <option value="Ascension Island">Ascension Island</option> <option value="Australia">Australia</option> <option value="Austria">Austria</option> <option value="Azerbaijan">Azerbaijan</option> <option value="Bahamas">Bahamas</option> <option value="Bahrain">Bahrain</option> <option value="Bangladesh">Bangladesh</option> <option value="Barbados">Barbados</option> <option value="Barbuda">Barbuda</option> <option value="Belarus">Belarus</option> <option value="Belgium">Belgium</option> <option value="Belize">Belize</option> <option value="Benin">Benin</option> <option value="Bermuda">Bermuda</option> <option value="Bhutan">Bhutan</option> <option value="Bolivia">Bolivia</option> <option value="Botswana">Botswana</option> <option value="Brazil">Brazil</option> <option value="Brunei">Brunei</option> <option value="Bulgaria">Bulgaria</option> <option value="Burkina Faso">Burkina Faso</option> <option value="Burundi">Burundi</option> <option value="Cambodia">Cambodia</option> <option value="Cameroon">Cameroon</option> <option value="Canada">Canada</option> <option value="Canary Islands">Canary Islands</option> <option value="Cayman Islands">Cayman Islands</option> <option value="Chad">Chad</option> <option value="Chile, Rep. of">Chile, Rep. of</option> <option value="China">China</option> <option value="Christmas Island">Christmas Island</option> <option value="Colombia">Colombia</option> <option value="Comoros">Comoros</option> <option value="Cook Islands">Cook Islands</option> <option value="Costa Rica">Costa Rica</option> <option value="Croatia">Croatia</option> <option value="Cuba">Cuba</option> <option value="Cyprus">Cyprus</option> <option value="Czech Rep.">Czech Rep.</option> <option value="Denmark">Denmark</option> <option value="Diego Garcia">Diego Garcia</option> <option value="Djibouti">Djibouti</option> <option value="Dominica">Dominica</option> <option value="Dominican Rep.">Dominican Rep.</option> <option value="Ecuador">Ecuador</option> <option value="Egypt">Egypt</option> <option value="El Salvador">El Salvador</option> <option value="Eritrea">Eritrea</option> <option value="Estonia">Estonia</option> <option value="Ethiopia">Ethiopia</option> <option value="Faeroe Islands">Faeroe Islands</option> <option value="Falkland Islands">Falkland Islands</option> <option value="Fiji">Fiji</option> <option value="Finland">Finland</option> <option value="France">France</option> <option value="French Antilles">French Antilles</option> <option value="French Guiana">French Guiana</option> <option value="French Polynesia">French Polynesia</option> <option value="Gabon">Gabon</option> <option value="Gambia">Gambia</option> <option value="Georgia">Georgia</option> <option value="Germany">Germany</option> <option value="Ghana">Ghana</option> <option value="Gibraltar">Gibraltar</option> <option value="Greece">Greece</option> <option value="Greenland">Greenland</option> <option value="Grenada">Grenada</option> <option value="Guadeloupe">Guadeloupe</option> <option value="Guatemala">Guatemala</option> <option value="Guinea">Guinea</option> <option value="Guinea-Bissau">Guinea-Bissau</option> <option value="Guyana">Guyana</option> <option value="Haiti">Haiti</option> <option value="Honduras">Honduras</option> <option value="Hong Kong">Hong Kong</option> <option value="Hungary">Hungary</option> <option value="Iceland">Iceland</option> <option value="India">India</option> <option value="Indonesia">Indonesia</option> <option value="Iraq">Iraq</option> <option value="Ireland">Ireland</option> <option value="Israel">Israel</option> <option value="Italy">Italy</option> <option value="Jamaica">Jamaica</option> <option value="Japan">Japan</option> <option value="Jordan">Jordan</option> <option value="Kazakhstan">Kazakhstan</option> <option value="Kenya">Kenya</option> <option value="Kiribati">Kiribati</option> <option value="Korea, North">Korea, North</option> <option value="Korea, South">Korea, South</option> <option value="Kuwait">Kuwait</option> <option value="Kyrgyzstan">Kyrgyzstan</option> <option value="Laos">Laos</option> <option value="Latvia">Latvia</option> <option value="Lebanon">Lebanon</option> <option value="Lesotho">Lesotho</option> <option value="Liberia">Liberia</option> <option value="Liechtenstein">Liechtenstein</option> <option value="Lithuania">Lithuania</option> <option value="Luxembourg">Luxembourg</option> <option value="Macau">Macau</option> <option value="Madagascar">Madagascar</option> <option value="Malawi">Malawi</option> <option value="Malaysia">Malaysia</option> <option value="Maldives">Maldives</option> <option value="Mali">Mali</option> <option value="Malta">Malta</option> <option value="Marshall Islands">Marshall Islands</option> <option value="Martinique">Martinique</option> <option value="Mauritania">Mauritania</option> <option value="Mauritius">Mauritius</option> <option value="Mayotte Island">Mayotte Island</option> <option value="Mexico">Mexico</option> <option value="Moldova, Rep. of">Moldova, Rep. of</option> <option value="Monaco">Monaco</option> <option value="Mongolia">Mongolia</option> <option value="Montserrat">Montserrat</option> <option value="Morocco">Morocco</option> <option value="Mozambique">Mozambique</option> <option value="Myanmar">Myanmar</option> <option value="Namibia">Namibia</option> <option value="Nauru">Nauru</option> <option value="Nepal">Nepal</option> <option value="Netherlands">Netherlands</option> <option value="Nevis">Nevis</option> <option value="New Caledonia">New Caledonia</option> <option value="New Zealand">New Zealand</option> <option value="Nicaragua">Nicaragua</option> <option value="Niger">Niger</option> <option value="Nigeria">Nigeria</option> <option value="Niue">Niue</option> <option value="Norfolk Island">Norfolk Island</option> <option value="Norway">Norway</option> <option value="Oman">Oman</option> <option value="Pakistan">Pakistan</option> <option value="Palau">Palau</option> <option value="Panama">Panama</option> <option value="Papua New Guinea">Papua New Guinea</option> <option value="Paraguay">Paraguay</option> <option value="Peru">Peru</option> <option value="Philippines">Philippines</option> <option value="Poland">Poland</option> <option value="Portugal">Portugal</option> <option value="Puerto Rico">Puerto Rico</option> <option value="Qatar">Qatar</option> <option value="Reunion Island">Reunion Island</option> <option value="Romania">Romania</option> <option value="Rota Island">Rota Island</option> <option value="Russia">Russia</option> <option value="Rwanda">Rwanda</option> <option value="Saint Lucia">Saint Lucia</option> <option value="Saipan Island">Saipan Island</option> <option value="San Marino">San Marino</option> <option value="Saudi Arabia">Saudi Arabia</option> <option value="Scotland">Scotland</option> <option value="Senegal">Senegal</option> <option value="Seychelles">Seychelles</option> <option value="Sierra Leone">Sierra Leone</option> <option value="Singapore">Singapore</option> <option value="Slovakia">Slovakia</option> <option value="Slovenia">Slovenia</option> <option value="Solomon Islands">Solomon Islands</option> <option value="Somalia">Somalia</option> <option value="South Africa">South Africa</option> <option value="Spain">Spain</option> <option value="Sri Lanka">Sri Lanka</option> <option value="St. Helena">St. Helena</option> <option value="St. Kitts">St. Kitts</option> <option value="Sudan">Sudan</option> <option value="Suriname">Suriname</option> <option value="Swaziland">Swaziland</option> <option value="Sweden">Sweden</option> <option value="Switzerland">Switzerland</option> <option value="Syrian Arab Rep.">Syrian Arab Rep.</option> <option value="Taiwan">Taiwan</option> <option value="Tajikistan">Tajikistan</option> <option value="Tanzania">Tanzania</option> <option value="Thailand">Thailand</option> <option value="Tinian Island">Tinian Island</option> <option value="Togo">Togo</option> <option value="Tokelau">Tokelau</option> <option value="Tonga">Tonga</option> <option value="Tunisia">Tunisia</option> <option value="Turkey">Turkey</option> <option value="Turkmenistan">Turkmenistan</option> <option value="Tuvalu">Tuvalu</option> <option value="Uganda">Uganda</option> <option value="Ukraine">Ukraine</option> <option value="United Kingdom">United Kingdom</option> <option value="Uruguay">Uruguay</option> <option value="USA">USA</option> <option value="Uzbekistan">Uzbekistan</option> <option value="Vanuatu">Vanuatu</option> <option value="Vatican City">Vatican City</option> <option value="Venezuela">Venezuela</option> <option value="Viet Nam">Viet Nam</option> <option value="Wales">Wales</option> <option value="Western Samoa">Western Samoa</option> <option value="Yemen">Yemen</option> <option value="Yugoslavia">Yugoslavia</option> <option value="Zambia">Zambia</option> <option value="Zimbabwe">Zimbabwe</option> </select></td>
</tr>
<tr>
<td><label for="lenguaje">Language*</label></td>
<td><select name="Lenguaje" id="Lenguaje" title="Insert your Language"> <option selected="selected"> - Choose -</option> <option value="Español">Español</option> <option value="English">English</option> <option value="Português">Português</option> </select></td>
</tr>
<tr>
<td valign="top">Comments</td>
<td><label> <textarea name="Consulta" id="Consulta" cols="40" rows="5"></textarea> </label></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td valign="top">Human Verification:</td>
<td>{imageverification}</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><input name="Enviar" id="Enviar" value="Send" type="submit" /></td>
<td></td>
</tr>
</tbody>
</table>
<p> </p>


parameters:
formmethod=post
LoadFiles=No
submissions_limit=
submissions_limit_error=Sorry but you can not submit the form again very soon like this!
handlepostedarrays=Yes
debug=0
checkToken=1
mysql_type=1
enmambots=No
captcha_dataload=0
captcha_dataload_skip=
useCurrent=
datefieldformat=d/m/Y
datefieldsnames=
datefieldextras=classes: ['dashboard']
dbconnection=No
savedataorder=after_email
dvfields=recordtime
dvrecord=Record #n
uploads=No
uploadfields=
uploadpath=
filename_format=$filename = date('YmdHis').'_'.$chronofile['name'];
upload_exceedslimit=Sorry, Your uploaded file size exceeds the allowed limit.
upload_lesslimit=Sorry, Your uploaded file size is less than the allowed limit
upload_notallowed=Sorry, Your uploaded file type is not allowed
imagever=Yes
imtype=1
imgver_error_msg=Incorrect Verification Code
validate=Yes
validatetype=mootools
validate_onlyOnBlur=1
validate_wait=
validate_onlyOnSubmit=0
validation_type=default
val_required=Nombre,Apellido,email,Telefono,Pais,Lenguaje
val_validate_number=
val_validate_digits=
val_validate_alpha=
val_validate_alphanum=
val_validate_date=
val_validate_email=email
val_validate_url=
val_validate_date_au=
val_validate_currency_dollar=
val_validate_selection=Pais,Lenguaje
val_validate_one_required=
val_validate_confirmation=
servervalidate=No
autogenerated_order=3
onsubmitcode_order=2
plugins_order=1
plugins=
mplugins_order=
tablenames=
GreyHead 21 Apr, 2010
Hi zaner,

Very nice, I've never seen this done before.

The only difference I can see is that the Spanish version has value='' in the first option and the English version does not. This will stop the validation as the first option is taken as selected.

Bob
zaner 21 Apr, 2010
For some reason when Tried to update from Joomfish it deleted: value="" from the form.
I updated it from MySQL table and worked just fine!

Thank you! you are the man! I already told you, you have a place to stay when you will be in Uruguay, hope your travel to South America went well...
This topic is locked and no more replies can be posted.