Add form validator example to documentation

In the existing UI documentation, there is a code example
that is suppose to include a form validator but does not.
This change will add the form validator to the code example.

Change-Id: I9fc5bc82dbc4ea434eed252cb5203561a48d588b
Closes-Bug: 1712375
This commit is contained in:
Ellen Batbouta 2018-04-11 18:12:33 -04:00
parent 2670b434a7
commit b7b4810fa1
1 changed files with 5 additions and 0 deletions

View File

@ -598,6 +598,11 @@ fields.
label: Availability zone
description: Select an availability zone, where service will be installed.
required: false
validators:
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
- expr: $.appConfiguration.dcInstances < 2 or not $.appConfiguration.unitNamingPattern.bool()
or '#' in $.appConfiguration.unitNamingPattern
message: Incrementation symbol "#" is required in the Instance Naming Pattern
Control attributes might be initialized with a YAQL expression. However prior
to version 2.4 it only worked for forms other than the first. It was designed