Feb 1st, 2010, 5:30 AM
(Jan 30th, 2010, 10:46 PM)Ben Wrote: Good grief! This is actually a bug - I'm extremely surprised!!! I've been using this script for years... this was a problem I introduced in the last update.
I'll include a fix for it in the next FT release, but in the meantime you can just manually update your /global/scripts/rsv.js file.
Go to line 623. There you'll see the rsv.styleField function:
Code:rsv.styleField = function(field, focus)
{
// if "field" is an array, it's a radio button. Focus on the first element
if (field.type == undefined)
{
if (focus)
field[0].focus();
To fix it, just change those lines to this (I've added in two extra lines):
Code:rsv.styleField = function(field, focus)
{
if (!rsv.errorFieldClass)
return;
// if "field" is an array, it's a radio button. Focus on the first element
if (field.type == undefined)
{
if (focus)
field[0].focus();
Then, you'll probably need to empty IE's cache. IE can cache files - even after you update them on the server, which makes like a real pain for us developers.
That should fix the problem.
Thanks SO much for reporting this, I'm really quite surprised!
- Ben
Ben - thanks for taking the time to help me out. Your fix solved the issue and I can get back to work getting all of my forms changed over to use your form processor.