Hi,
We are having trouble with live validation working with IE8. When the user points away from the required field, instead of an error message, we get javascript. The site is http://flexiblepower.net/index.php?option=com_chronocontact&Itemid=24.
We are having trouble with live validation working with IE8. When the user points away from the required field, instead of an error message, we get javascript. The site is http://flexiblepower.net/index.php?option=com_chronocontact&Itemid=24.
Hi Mark, please get RC5.2
Max
Max
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"});
});
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"});
});
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.
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.
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
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
I have PM'ed you an admin user/pass - you are welcome to test & play with it -- the site is not live yet.
Mark
Mark
Now it works in IE8, but the two fields I have set to validate with the javascript (zip and phone) do not validate in Firefox.
http://flexiblepower.net/index.php?option=com_chronocontact&Itemid=24
http://flexiblepower.net/index.php?option=com_chronocontact&Itemid=24
Hi Mark,
Please get the RC5.3 new upgrade pack!
Max
Please get the RC5.3 new upgrade pack!
Max
Added RC5.3 and have the same issue. the javascript for zip code and phone not being read properly in firefox.
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"});
});
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"});
});
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
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
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?
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?
This topic is locked and no more replies can be posted.