On Jul 2, 6:18 pm, nutron <
anut...@gmail.com> wrote:
> I've got this fixed (the code was using element.parentNode for some reason,
> instead of element.getParent()). It'll be in the next release, in the mean
> time, you can fix it by just adding this to your code (to redefine the
> validator):
> FormValidator.add('validate-one-required', {
> errorMsg: FormValidator.getMsg.pass('oneRequired'),
> test: function(element, props){
> var p =
document.id(props['validate-one-required']) || element.getParent();
> return p.getElements('input').some(function(el){
> if (['checkbox', 'radio'].contains(el.get('type'))) return
> el.get('checked');
> return el.get('value');
> });
>
> }
> });
>
> On Thu, Jul 2, 2009 at 5:59 PM, TheIvIaxx (via Nabble) <