3. Security and Validation

formValidation

Version

Using the formValidation interceptor you can validate the input of HTML forms.

Syntax

formValidation:
fields: # required
- <formValidation-field>
formValidation:
  fields: # required
    - <formValidation-field>

Sample

<serviceProxy port="2000">
<formValidation>
<field name="age" regex="\d+" />
<field name="name" regex="[a-z]+" />
</formValidation>
</serviceProxy>
<serviceProxy port="2000">
	<formValidation>
		<field name="age" regex="\d+" />
		<field name="name" regex="[a-z]+" />
	</formValidation>
</serviceProxy>

Child Structure

ElementCardinalityDescription
formValidation-field1..*Specifies the name of the parameter and the regex to match against.

Can be used in