As mentioned, I have tried a number of
attempts and variations that seems odd, compared to the behaviour of Notes
3 - versions up to and incl. Notes 8.5.+: See Reference below.
The evidence I have, shows that the
Validation code is driven not only when a document is Saved, Recalculated
or Refreshed but also when
document is opened in Edit mode !
I found out, I can temporarily, make
this workaround (with
blue markup) as long I'm am not going
to maintain forms and code for all our legacy databases:
@If(AdminUser = 1;@Success;@IsDocBeingRecalculated;@Success;
@ThisValue="";@Failure("Saving
a document, requires an explanation in the "+@ThisName+" field");
@Success)
The backside of this workaround, is
that the normal behaviour of getting fields checked, is deferred to the
time when user tries to Save.
Reference:
From Notes 8.5.2 Designer Help
Notes Link --> here
to the 'Editable Field Formulas' entry, of which I excerpt this:
- The input validation formula checks
the contents of a field against predefined criteria, making sure the entry
meets certain requirements. For example, use an input validation formula
to ensure that users fill in a required field. Input validation formulas
are evaluated each time a document is saved, recalculated, or refreshed.