Problem solve Get help with specific problems with your technologies, process and projects.

Is there a way to do input validation on a computed field?

Is there a way to do input validation on a computed field?
In general, you wouldn't do a validation on a computed field because if it's wrong, there's nothing the user can do to correct it. If they correct it by changing an editable field, then it's the editable field that's wrong.

But if you want to do this, you can write the validation formula in some other nearby field that is editable, or do in the Querysave event (if the value is wrong, use Msgbox to display an error dialog and set Continue=False to prevent the document from being saved).

REM "input validation for field Value_07"; 
@If(Value_07 = ""; 
      "You must enter a value."; 
   ComputedTotal <= 0; 
      "The total of all values must be greater than zero." 

Dig Deeper on Lotus Notes Domino Formula Language

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...