Field validation and "refresh on field change" issue

I have a problem where my field validations that run in the “onSubmit” part of my form, interrupt my “refresh fields on keyword change”.

The field that needs to do the keyword change is in the middle of the form… and there are fields that I validate further on down the form… so they always comaplain on the “refresh” that they are empty and the keyword change doesn’t pull up the other fields they are supposed to.

The form is such that the layout needs to stay.

So… is there another place I can do the validation?

I tried putting it in the webquerysave… but that dosn’t let me do Javascript…

Is there a better place to do the validaions that don’t get checked on a “refresh”?

(Pulling hairs!!!)

Thanks

Paul G

Subject: Field validation and “refresh on field change” issue.

Paul,

I have the same problem at the moment. I entered Javascript commands on the fieldChange property for each cell. This works, but alo sends an alert each time a field is modified and is somewhat cumbersome. Have you figured out a solution to this?

Thanks

-Brendan

AIM: Phatal3rr0r

Subject: RE: Field validation and “refresh on field change” issue.

I posted a solution to this (and similar) problems a while back. All native Domino submissions go through the _doClick() function, and they will all feed this as the second argument. In your validation code, examine _doClick.arguments[1] (the object that called the function), and look for the name or the id of your submit button/action. If you don’t find it, then return true so the form will submit without going through the rest of the validation.