Back  Forward Validate form
Completing the Validate tab

  1. About 
  2. New 
  3. Validate 
  4. Input 
  5. Pages & Classes 
  6. History 
  7. More... 

The Validate tab relates the to-be-evaluated properties and their corresponding validation settings in a row-column matrix structure. Complete this tab to define validation conditions for one or more properties.

Specify the properties in the first column (under the Property heading). Then for each property, use the fields and controls in the other columns to specify defined sets of validation conditions that the system applies to the property. By default, there is a set named Default Validation. Additional columns are displayed if input-qualified validation conditions are specified.

Best practice: Aim to use no more than fifty (50) rows and ten (10) columns on this tab. If you need to specify more than that, create another validate rule to use in the Additional Validation fields.

When the system runs the validate rule, it first evaluates the validation conditions defined for the first property in the list, then it evaluates the validation settings for the second property, and so on. When a property is found to be invalid, if no further validate actions are specified (for example, if Continue Validation is not selected in the condition details and nothing is specified for the Also Execute or Additional Validation fields), the system ends its evaluation.

To specify validation conditions for a particular property listed on the Validate tab, click either Add (if no conditions are currently set) or Edit (if conditions are currently set) in the property's corresponding Conditions column. The Validation Conditions window opens.

Use the following fields in the Validation Conditions window to specify the conditions on the to-be-evaluated property. See Specifying the properties to be validated for which validation types are associated with which property references.

For Validate and Validate Each:

Field

Description

Required

Select to require the user at runtime to enter a non-blank value for the corresponding property. If selected and the field is blank at runtime when the form is submitted, the system associates the message:

This field may not be blank.

with the property. B-13135 REJECTED You cannot override this message.SR-668 B-15883

If not selected, the blank value is allowed.

NoteDo not select the Required? checkbox for a field that appears at runtime as a checkbox, because the cleared (unchecked) value may correspond to blank.

Enable Conditions

Select to enable the specified conditions on the corresponding property on the Validate tab. Clear the checkbox to disable the conditions.

If

This area defines the validation conditions. To specify a condition:

  1. Use the autocomplete (Autocomplete) in the Select a function field to select the function that the system evaluates at runtime. The window refreshes to reflect the selected function and displays entry fields to specify any parameters needed for the selection.
  2. SmartPromptSpecify the parameters (as needed) for the selection.

Optionally add more conditions by clicking Add a row to add more rows. For each additional row, select OR or AND to specify the logical relationship between the conditions.

To use a different function for a condition, first clear the function by clicking Clear function field, and then use the autocomplete (Autocomplete) to select another function.

To remove a condition, click Delete a condition.

For functions that involve expressions, you can click Open Expression Builder to use the Expression Builder to help you in specifying the expression.

Message

SmartPromptOptional. Specifies the message that is displayed to the user at runtime if the evaluation of the validation conditions fails. You can type a message, or SmartPromptspecify a message rule that defines the message text.

If the message rule accepts numbered parameters, follow the message rule's name with a backslash character, the letter t, and an optional literal text value for the parameter. For example, if the message rule NoSuchCustomer accepts parameters {1}, {2} and {3}, you can enter three text values into the Message field in the format:

NoSuchCustomer\tyou\tMaster Account system\tmonth-end

NoteYou can't reference property values or parameter page values as message parameters.

For more information about messages, see About Message Rules.

Continue Validation

Select to have the system continue evaluating subsequent properties, even if the current evaluation fails.

For Call and Call For Each:

Field

Description

Call Validate

SmartPromptSpecify a validate rule. The system uses the specified rule to evaluate the properties in the page, page list, or page group.

Continue Validation

Indicates that the system continues evaluating subsequent properties, even if the current evaluation fails.

Up About Validate rules