Forums

livevalidation and ie8

Max_admin 02 Jul, 2009
Hi Mark, please get RC5.2

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
markcrobinson 02 Jul, 2009
Before, we had everything working fine (this is a complex install) on everything but IE8 - Now validation is completely broken.

To summarise:
This form Submits to Salesforce com through CURL:
https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8

Required for validation on validation page:
validate: first_name,last_name,street,city,zip,phone,email,state
validate digits: zip
validate email: email
validate-selection: state

Here is the URL:
http://flexiblepower.net/index.php?option=com_chronocontact&Itemid=24


Javascript in the Form Javascript Box:
window.addEvent('domready', function() {
var zip = new LiveValidation('zip');
zip.add(Validate.Format, { pattern: /^\d{5}$/i });
});
window.addEvent('domready', function() {
var phone = new LiveValidation('phone');
phone.add(Validate.Format, { pattern: /^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$/i, failureMessage:"Please format phone number as follows: (yyy)yyy-yyyy"});
});
markcrobinson 03 Jul, 2009
well, I tried to fix by re-building form with the form wizard instead of html. That worked somewhat, but now cannot get specific validation to work (5 digit zip code and valid phone number) that I previously had working with javascript. Help please?
It's as if the code in the Javascript section

window.addEvent('domready', function() {
var zip = new LiveValidation('zip');
zip.add(Validate.Format, { pattern: /^\d{5}$/i });
});
window.addEvent('domready', function() {
var phone = new LiveValidation('phone');
phone.add(Validate.Format, { pattern: /^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$/i, failureMessage:"Please format phone number as follows: (yyy)yyy-yyyy"});
});

Is not being seen.
Max_admin 03 Jul, 2009
Hi Mark,

Please clear the "date fields names" field under the general tab if your form doesn't have any date fields since it has a bug in the latest release and breaks the validation!

let me know if this fixes it and if possible can you show me a screnshot for your CURL plugin conifg ? because another user can't get it to work with salesforce at all and we wanna help!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
markcrobinson 03 Jul, 2009
I have PM'ed you an admin user/pass - you are welcome to test & play with it -- the site is not live yet.

Mark
Max_admin 06 Jul, 2009
Hi Mark,

Please get the RC5.3 new upgrade pack!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
markcrobinson 06 Jul, 2009
Added RC5.3 and have the same issue. the javascript for zip code and phone not being read properly in firefox.
GreyHead 06 Jul, 2009
Hi Mark,

They both look OK here in FireFox - what error are you seeing?

Bob
markcrobinson 06 Jul, 2009
When you fill in zip code, it should only allow a five digit zip. Howver, it allows any number of digits. Phone number should only allow a 10 or 11 digit phone number, but it also allows any number of digits.

Have added this javascript, but the form does not seem to be reading it:

window.addEvent('domready', function() {
var zip = new LiveValidation('zip');
zip.add(Validate.Format, { pattern: /^\d{5}$/i });
});
window.addEvent('domready', function() {
var phone = new LiveValidation('phone');
phone.add(Validate.Format, { pattern: /^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$/i, failureMessage:"Please format phone number as follows: (yyy)yyy-yyyy"});
});
GreyHead 07 Jul, 2009
Hi Mark,

Ah, OK. I've had zero success with custom validations so far but I think that Max told me that they should work. I'll add it to my 'to-do' list to try again.

Bob
markcrobinson 08 Jul, 2009
It works now, I cheated a bit and changed some of the validation definitions in the javascript files. Not an elegant solution, but it works for this form.

Question - there are 4 javascript files with validation - jsvalidation2, livevalidation_standalone and moovalidation and moovalidation2. I changed the validation definition in all the files, because I wasn't sure which one was used. Which javascript file should I change if I want to do this in the future?
GreyHead 08 Jul, 2009
Hi Mark,

You can ignore the MooValidation ones; livevalidation_standalone is the basic LiveValidation code; jsvalidation2 applies the code to the form and sets up equivalents to the old MooValidation validators.

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