CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

example_setup.txt

Maik Peuser, 2012-05-29 11:37

Download (3.4 kB)

 
1
plugin.Tx_Formhandler.settings.predef.XXX.1 {
2
3
	# This block defines the error checks performed when the user hits submit.
4
	validators {
5
		1{
6
			class = Validator_Default
7
			config{
8
				messageLimit = 1
9
				fieldConf {
10
					bank_code.errorCheck{
11
						1 = required
12
					}
13
					bank_accountnr.errorCheck{
14
						1 = required
15
					}
16
					bank_name.errorCheck.1 = required
17
					toc_agreement.errorCheck{
18
						1 = required
19
					}
20
				}
21
			}
22
		}
23
		2{
24
			class = Validator_Default
25
			config{
26
				messageLimit = 1
27
				fieldConf {
28
					XXX_insurant_begin.errorCheck{
29
						1 = required
30
					}
31
				}
32
			}
33
		}
34
		3{
35
			class = Validator_Default
36
			config{
37
				messageLimit = 1
38
				fieldConf {
39
					XXX_priorclaim_number_of_damage.errorCheck.1 = required
40
				}
41
			}
42
		}
43
		4{
44
			class = Validator_Default
45
			config{
46
				messageLimit = 1
47
				fieldConf {
48
					XXX_insurant_p1_salutation.errorCheck.1 = required
49
				}
50
			}
51
		}
52
		5{
53
			class = Validator_Default
54
			config{
55
				messageLimit = 1
56
				fieldConf {
57
					XXX_insurant_p2_salutation.errorCheck.1 = required
58
				}
59
			}
60
		}
61
		6{
62
			class = Validator_Default
63
			config{
64
				messageLimit = 1
65
				fieldConf {
66
					XXX_insurant_p3_salutation.errorCheck.1 = required
67
				}
68
			}
69
		}
70
		7{
71
			class = Validator_Default
72
			config{
73
				messageLimit = 1
74
				fieldConf {
75
					XXX_insurant_p4_salutation.errorCheck.1 = required
76
				}
77
			}
78
		}
79
		8{
80
			class = Validator_Default
81
			config{
82
				messageLimit = 1
83
				fieldConf {
84
					XXX_insurant_p5_salutation.errorCheck.1 = required
85
				}
86
			}
87
		}
88
		9{
89
			class = Validator_Default
90
			config{
91
				messageLimit = 1
92
				fieldConf {
93
					XXX_insurant_p6_salutation.errorCheck.1 = required
94
				}
95
			}
96
		}
97
	}
98
	### disable validation for bankdata if no authorization is given
99
	if {
100
			1 {
101
				conditions {
102
					OR1.AND1 = bank_authorization!=1
103
				}
104
				isTrue {
105
						1.validators.1.config.disableErrorCheckFields = bank_code,bank_accountnr,bank_name
106
				}
107
			}
108
			2 {
109
				conditions {
110
					OR1.AND1 = XXX_piq!=1
111
				}
112
				isTrue {
113
						1.validators.2.config.disableErrorCheckFields = XXX_piq_insurance_company
114
				}
115
			}
116
			3 {
117
				conditions {
118
					OR1.AND1 = XXX_priorclaim!=1
119
				}
120
				isTrue {
121
						1.validators.3.config.disableErrorCheckFields = XXX_priorclaim_number_of_damage
122
				}
123
			}
124
			4 {
125
				conditions {
126
					OR1.AND1 = XXX_insurant_p1_name=
127
				}
128
				isTrue {
129
						1.validators.4.config.disableErrorCheckFields = XXX_insurant_p1_salutation
130
				}
131
			}
132
			5 {
133
				conditions {
134
					OR1.AND1 = XXX_insurant_p2_name=
135
				}
136
				isTrue {
137
						1.validators.5.config.disableErrorCheckFields = XXX_insurant_p2_salutation
138
				}
139
			}
140
			6 {
141
				conditions {
142
					OR1.AND1 = XXX_insurant_p3_name=
143
				}
144
				isTrue {
145
						1.validators.6.config.disableErrorCheckFields = XXX_insurant_p3_salutation
146
				}
147
			}
148
			7 {
149
				conditions {
150
					OR1.AND1 = XXX_insurant_p4_name=
151
				}
152
				isTrue {
153
						1.validators.7.config.disableErrorCheckFields = XXX_insurant_p4_salutation
154
				}
155
			}
156
			8 {
157
				conditions {
158
					OR1.AND1 = XXX_insurant_p5_name=
159
				}
160
				isTrue {
161
						1.validators.8.config.disableErrorCheckFields = XXX_insurant_p5_salutation
162
				}
163
			}
164
			9 {
165
				conditions {
166
					OR1.AND1 = XXX_insurant_p6_name=
167
				}
168
				isTrue {
169
						1.validators.9.config.disableErrorCheckFields = XXX_insurant_p6_salutation
170
				}
171
			}
172
		}
173
}