Hi
Getting ths error on pageload.
I did not use the wizard to create the form, and I'm not using any DateTime fields.
I can fix the error if I remember to clear the contents of all the fields in 'Date Fields Settings' each time before I re-save the form.
Thanks for the help
Getting ths error on pageload.
Error: invalid assignment left-hand side
Source File: http://www.topgunyamaha.com.au/contact-us.html
Line: 29, Column: 19
Source Code:
myCal_d/m/Y = new Calendar({ d/m/Y: 'd/m/Y' }, { classes: ['dashboard'] });
I did not use the wizard to create the form, and I'm not using any DateTime fields.
I can fix the error if I remember to clear the contents of all the fields in 'Date Fields Settings' each time before I re-save the form.
Thanks for the help
Hi BradC,
I've no real idea why this would happen if the date-field boxes are empty. Do they show up filled when you re-edit the form?
Bob
I've no real idea why this would happen if the date-field boxes are empty. Do they show up filled when you re-edit the form?
Bob
Hi Bob
Yes they do.
So if you save the form without removing their contents, you get the error.
Yes they do.
So if you save the form without removing their contents, you get the error.
Hi BradC,
Hmm, they *should* stay clear unless there is something in your code to re-trigger them. You don't have any commented out date-time fields?
You can use PHPMyAdmin to edit the form parameteres and see if that makes any difference. There's a paramsall column in the jos_chrono_contact table which includes the line datefieldsnames= - just delete anything after the = but leave the rest.
Bob
Hmm, they *should* stay clear unless there is something in your code to re-trigger them. You don't have any commented out date-time fields?
You can use PHPMyAdmin to edit the form parameteres and see if that makes any difference. There's a paramsall column in the jos_chrono_contact table which includes the line datefieldsnames= - just delete anything after the = but leave the rest.
Bob
Hi Bob
No, I have no commented out date-time fields. See form code below.
Have the same issue on another website.
datefieldsnames= in jos_chrono_contact table is blank.
Source code ERROR
Source code NO ERROR
No, I have no commented out date-time fields. See form code below.
Have the same issue on another website.
datefieldsnames= in jos_chrono_contact table is blank.
<table id="forms">
<tr>
<td colspan="2" class="formsHeading">Contact us</td>
</tr>
<tr>
<td colspan="2" class="contactDetails"><b>Top Gun Yamaha</b><br />41 Brisbane Road<br />Bundamba, Ipswich<br />QLD 4304<br />T: 07 3282 5588<br />F: 07 3282 5599<br /><br /></td>
</tr>
<tr>
<td class="label">First name:</td>
<td class="errorLabel"><input name="FirstName" value="" type="text" id="text_1" class="required" /></td>
</tr>
<tr>
<td class="label">Last name:</td>
<td class="errorLabel"><input name="LastName" value="" type="text" id="text_2" class="required" /></td>
</tr>
<tr>
<td class="label">Email:</td>
<td class="errorLabel"><input name="Email" value="" type="text" id="text_3" class="required validate-email"/></td>
</tr>
<tr>
<td class="label">Telephone:</td>
<td class="errorLabel"><input name="Telephone" value="" type="text" id="text_4" class="required validate-number" /></td>
</tr>
<tr>
<td class="label">Current bike(s):</td>
<td><input name="CurrentBike" value="" type="text" id="text_5" class="NOTrequired" title="" /></td>
</tr>
<tr>
<td class="label">Your postcode:</td>
<td><input name="Postcode" value="" type="text" id="text_6" class="NOTrequired" title="" /></td>
</tr>
<tr>
<td class="label">Comments:</td>
<td><textarea name="Comments" id="text_7" value="" cols="20" rows="10"></textarea></td>
</tr>
<tr>
<td class="label">Security code:</td>
<td>{imageverification}</td>
</tr>
<tr>
<td class="label"> </td>
<td><input type="submit" value="submit" name="submit" class="button-form" /></td>
</tr>
</table>Source code ERROR
<script type="text/javascript">
window.addEvent('domready', function() {
myCal_d/m/Y = new Calendar({ d/m/Y: 'd/m/Y' }, { classes: ['dashboard'] });
});
</script>Source code NO ERROR
<script type="text/javascript">
window.addEvent('domready', function() {
});
</script>
Removing data from the "Date Fields names:" field in the form editor on the first tab under Date Fields Settings will resolve this problem. Previous versions of ChronoForms seem to have had an issue with this field populating automatically. If you notice "d/m/Y" is in the field in question, you will be affected. Forms created using one of these affected previous versions will need to be retrofitted by clearing this field out.
In the event that need legitimate fields in order to make use of this functionality, then only clear out the "d/m/Y" information from this field.
In the event that need legitimate fields in order to make use of this functionality, then only clear out the "d/m/Y" information from this field.
This topic is locked and no more replies can be posted.
