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.

This Content Component encountered an error

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))
This was first published in September 2001

Dig deeper on Domino Resources

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • 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 ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close