# Dexagogo Really Easy Field Validation

**URL:** <https://www.ruby-forum.com/t/dexagogo-really-easy-field-validation/175963>\
**Category:** Rails\
**Created:** [September 23, 2009, 5:11am UTC](https://www.ruby-forum.com/t/dexagogo-really-easy-field-validation/175963 "2009-09-23T05:11:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crucoba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Post date:** [September 23, 2009, 5:11am UTC](https://www.ruby-forum.com/t/dexagogo-really-easy-field-validation/175963/1 "2009-09-23T05:11:04Z")

</div>

Hi guys,

I’m trying to use Dexagogo’s Really Easy Field validation for my project  
[http://tetlaw.id.au/view/javascript/really-easy-field-validation](http://tetlaw.id.au/view/javascript/really-easy-field-validation) and I’m  
having trouble getting it to work on two seperate forms.

I have two forms in my application with the id, ‘new\_event’ and  
‘new\_claim’.

in my application.js (which is included), I have the following code:

document.observe(“dom:loaded”, function(){

var valid1 = new Validation(‘new\_event’, {immediate : true});  
var valid2 = new Validation(‘new\_claim’, {immediate: true});  
});

My text fields that require validation all has the class=“required” on  
both  
forms.

Problem now, is that only the new\_event form, works as it should be,  
upon  
leaving the text\_field, it gets validated immediately via ajax.

new\_claim on the other hand doesn’t work.

I’m pretty new to prototype and javascript so please bear with my  
ignorance  
if I’ve missed out something really basic.

Thanks again.

Warmest regards,  
David C.
