Hi all .I have written a formula for Field validation and in the same form im Using some script where im Refreshing the Uidoc.If the Value entered in that Validating field is Wrong When ever the doc is refreshing Im getting two error messages.One is the error Message i Kept in the Validation FOrmula and Immediately after that Im getting the “NotesError-Field Did’t Pass field Validation Formula”
I cant write Script for Field Validation in Quarysave.
Please Kindly Help me in this regard.
A big tahks in advance
Subject: Urgent help Needed Please Advice
How does your validation formula look like?
The “NotesError-Field Did’t Pass field Validation Formula” error indicates you are using a validation formula without a @success formula in it. @success indicates that the value entered does meet the validation criteria.
It should be something like this:
@if(yadayada=“”;@failure(“You must enter a value for yadayada1”);@success)
Subject: Urgent help Needed Please Advice
If you have to refresh the document and the document doesn’t pass the field validation then you will correctly get the Notes validation kicking in.
LotusScript will correctly throw an error too. However, you can handle this error if you wish by resuming the script with no message or by exiting the script with no message using the specific error code that it is throwing.
Rob
Subject: Urgent help Needed Please Advice
this is a common order of execution issue with notes forms - you need to modify your validation formulas to account for this
this is really basic problem - and could / should have been found in any of the notes domino documentation: the formula language book, the best practices book and elsewhere