Hi,I have this simple formula in input validation event of a field,
@If(GST=“”;@Failure(“You have to enter GST”); @Success)
if GST = “” and when I refresh the uidoc, I got that message,but I also got this message:“Notes Error - field didn’t pass validation formula”, this is redundent message generated by Notes,
so my question is How to get rid of the second message? just display the first message I wrote.
thanks a lot for any help,
Subject: How to avoid “Notes Error - field didn’t pass validation formula” message?
try:
@If(@IsDocBeingSaved;“”;@Return(@Success));
@If(Name=“” ; @Failure(“Please enter a NAME”) ; @Success)
Subject: RE: How to avoid “Notes Error - field didn’t pass validation formula” message?
Thanks a lot, Nancy,the thing is that that message is not popup when the doc is being saved, it happened when refresh the uidoc.
any ideas?
Subject: RE: How to avoid “Notes Error - field didn’t pass validation formula” message?
Do you have a call to notesuidocument.save somewhere, such as in your postrecalc event?
Subject: RE: How to avoid “Notes Error - field didn’t pass validation formula” message?
No, I do not have a call notesuidocument.save anywhere,I have a refresh button with codes:
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Call uidoc.refresh
When I click this button, then the message come up.
any ideas?
Thanks a lot for the help,
Subject: RE: How to avoid “Notes Error - field didn’t pass validation formula” message?
It really sounds like there is a call to notesuidocument.save being invoked somewhere. Any input validation formula’s return @Failure raises an exception in this method. Try refreshing with formula instead, just to take LS out of the picture here.
Subject: RE: How to avoid “Notes Error - field didn’t pass validation formula” message?
Hi Thomas,Thanks a lot, yes, it solved the problem if I convert the LS codes to “@Command([ViewRefreshFields])”, wired
Can I ask why the LS and Formula working in different way?