Manage Learn to apply best practices and optimize your operations.

One-stop form validation

To validate field entries in a form submitted over the Web, create a computed field and hide it from the Web.

To validate field entries in a form submitted over the Web in one process on the server, create a computed field and hide it from the Web.

In the FIELDS event "input translation" place your formula for all other field validation formulas and assign these values to a temporary variable.Use an @if and assign it a null value if the field validates otherwise assign it the value of the text string you want to display to the user when their form fails to validate these fields (use html to format these strings eg <li></li>)". Dont use @Success @Failure formulas. After all the formulas type all the temorary variable names so your field is translated into a series of failure text and null values. In the "input validation" event of the same field if the value of your field is NULL all other fields have been validated ,@Success. If the value of your field is not NULL @Faliure and the text value of the field will be displayed showing all the text values for the fields that did not validate.

Input translation event:
REM "email and surname are the names of other fields in your form that you wish to validate." @All a:=@If(email="";"please enter an email address";""); b:=@If(surname="";"please enter your surname";""); a+b input validation event: @If(thisFieldsName="";@Success;@Failure("please go back and fill in these fields "+a+b))

Dig Deeper on Domino Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials'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 ...