From b7b4810fa16a905953eba12e6433e14e5d198d36 Mon Sep 17 00:00:00 2001 From: Ellen Batbouta Date: Wed, 11 Apr 2018 18:12:33 -0400 Subject: [PATCH] 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 --- doc/source/admin/appdev-guide/muranopackages/dynamic_ui.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/source/admin/appdev-guide/muranopackages/dynamic_ui.rst b/doc/source/admin/appdev-guide/muranopackages/dynamic_ui.rst index 02810121d..da50a9832 100644 --- a/doc/source/admin/appdev-guide/muranopackages/dynamic_ui.rst +++ b/doc/source/admin/appdev-guide/muranopackages/dynamic_ui.rst @@ -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