Configure field input validation

This topic explains how to configure input validation for change request fields.

Create new conditions for change request fields

If desired, you can define specific conditions for the values provided for certain change request fields in the request template. FireFlow will enforce these custom conditions by validating these fields when the change request is created and anytime the field is edited. You can additionally configure custom error messages to accompany each field condition.

Note: Any conditions configured for change request validation with the ValidateTicket (see ValidateTicket ) hook will additionally cause validation to fail.

Note: Input validation for change request fields is only supported for traffic change request templates (IPv4 only).

Do the following:

  1. Log in to FireFlow for configuration purposes. For details, see Log in for configuration purposes.

  2. In the main menu, click Configuration.

    The FireFlow Configuration page appears.

  3. Click Conditional Logic.

    The Select a condition page appears.

  4. Click the Input Validation tab.

    The Input Validation tab appears.

  5. Click .

    The Create input validation custom logic window appears.

  6. Complete the fields using the relevant information in Input Validation Custom Logic Fields (see Input validation custom logic fields).

  7. Click Save.

Back to top

Input validation custom logic fields

In this field...

Do this...

Enter Condition Name

Type a name to represent the condition.

Enter Description

Type the description of the condition.

Enabled

Select this check box to enable the condition.

Apply this condition to

Select the relevant traffic change request templates. The selected templates appear in the Target Traffic Template list.

To remove a template, click the status in the Target Traffic Templates list.

When

Define the condition by selecting the condition type in the drop down menu and completing the relevant fields.

You define the condition(s) for which you want the input validation to fail.

  • For the Request Field condition type, select the field, select the boolean operator, and type the value for the field.

Note: For the operators has format and does not have format, all regular expressions are supported as input.

  • For the Traffic condition type, select the relevant endpoint(s), select the boolean operator, and type the IP address, range or CIDR for the field.
  • For the Status condition type, select the boolean operator and select the status.

AND

Click this to add another condition.

Note: Validation will fail only when all conditions are true.

Click this to duplicate a condition. This enables you to easily create an additional condition based on an existing one.

Click this to remove a condition.

Error Message text is

Type the error message you want to appear when the condition(s) are true and validation therefore fails.

Include user's entered value

Select this check box to include the user's input in a field in the error message.

The Please Select Field... drop down menu appears.

Please Select Field...

Select the desired field in the drop-down menu.

In the error message, type <FIELD_VALUE> where you want the field value to appear. For example, "<FIELD_VALUE> is not a supported value."

Back to top