Change validation

Tools module Validate form and request values / Select a parameter on the right / Add or Edit from the context menu

Name

The name entered here must correspond to a request parameter such as rq_AppGuid and the regular expression ^\*[A-Za-z_0-9]+$|[A-Za-z_][A-Za-z_0-9]+\*?$".

Examples

With *_Save, all request parameters that end with _Save will be validated. With rq_Action*, all request parameters that begin with rq_Action will be validated. With rq_ActionID, only request parameters that correspond to the name rq_ActionId will be validated.

System type

This setting is defined automatically if the parameter is a system parameter. This setting is not defined for user-defined, user-created parameters.

Allowed for HTTP method(s)

Scope

You can choose from the following options for the scope: Items with greater areas of validity take precedence here. With the system-wide scope, a parameter will always be checked, whereas selecting Restricted to application area will only check the parameter values within an application (e.g. if you want to test if your test parameter has a certain value on the start page of an application).

Mode

The following modes can be selected for the error messages: The portal.log files where the portal log is written can be found in the portal directory /log.

Type

Select the desired validation type here.

Application

The selected application page is shown here if you have selected a scope that relates to an application.

Search
Opens a dialog where the desired application and page, which should be validated, can be selected.

Error message

You can define a text that will be written in the log if an error occurs.

Property name / Value columns

Depending on which type is selected, the table may or may not be editable.

Type: Test valid values against a predefined list




The permitted value should be defined at the bottom of this dialog for this type.

Allow empty values

Empty values will not be seen as an error with this setting.

Case-sensitive

The case will be taken into account during the validation.

Add
Adds a new row where the value can be entered.

Delete
Deletes the row currently highlighted.

Type: Test against a regular expression


Pattern

You can enter your pattern that should be searched for here. A valid pattern can be recognized based on this symbol, invalid patterns based on this symbol.

Test

You can enter character strings to test your pattern here. Valid entries can be recognized based on this symbol, invalid entries based on this symbol.