[BUGFIX] EXT:form - exclude hidden fields within summary pages and mails
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Configuration / Yaml / BaseSetup.yaml
1 TYPO3:
2 CMS:
3 Form:
4 persistenceManager:
5 allowedFileMounts:
6 10: 1:/user_upload/
7 allowSaveToExtensionPaths: false
8 allowDeleteFromExtensionPaths: false
9 #allowedExtensionPaths:
10 #10: EXT:example/Resources/Private/Forms/
11
12 prototypes:
13 standard:
14
15 ########### DEFAULT FORM ELEMENT DEFINITIONS ###########
16 formElementsDefinition:
17
18 ### BASE ELEMENTS ###
19 Form:
20 __inheritances:
21 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
22 rendererClassName: 'TYPO3\CMS\Form\Domain\Renderer\FluidFormRenderer'
23 renderingOptions:
24 __inheritances:
25 10: 'TYPO3.CMS.Form.mixins.translationSettingsMixin'
26 templateRootPaths:
27 10: 'EXT:form/Resources/Private/Frontend/Templates/'
28 partialRootPaths:
29 10: 'EXT:form/Resources/Private/Frontend/Partials/'
30 layoutRootPaths:
31 10: 'EXT:form/Resources/Private/Frontend/Layouts/'
32 addQueryString: false
33 argumentsToBeExcludedFromQueryString: []
34 additionalParams: []
35 controllerAction: perform
36 httpMethod: post
37 httpEnctype: 'multipart/form-data'
38 _isCompositeFormElement: false
39 _isTopLevelFormElement: true
40
41 honeypot:
42 enable: true
43 formElementToUse: 'Honeypot'
44
45 submitButtonLabel: 'Submit'
46
47 # set this to TRUE if you want to avoid exceptions for FormElements without definitions
48 skipUnknownElements: true
49
50 ### FORM ELEMENTS: CONTAINER ###
51 Page:
52 __inheritances:
53 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
54 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\Page'
55 renderingOptions:
56 _isTopLevelFormElement: true
57 _isCompositeFormElement: true
58 nextButtonLabel: 'next Page'
59 previousButtonLabel: 'previous Page'
60
61 SummaryPage:
62 __inheritances:
63 10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Page'
64 renderingOptions:
65 _isTopLevelFormElement: true
66 _isCompositeFormElement: false
67 nextButtonLabel: 'next Page'
68 previousButtonLabel: 'previous Page'
69
70 Fieldset:
71 __inheritances:
72 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
73 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\Section'
74 renderingOptions:
75 _isCompositeFormElement: true
76
77 GridContainer:
78 __inheritances:
79 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
80 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GridContainer'
81 renderingOptions:
82 _isCompositeFormElement: true
83 _isGridContainerFormElement: true
84 properties:
85 elementClassAttribute: 'container'
86 # overrules 'GridRow.properties.gridColumnClassAutoConfiguration'
87 gridColumnClassAutoConfiguration:
88 gridSize: 12
89 viewPorts:
90 xs:
91 classPattern: 'col-xs-{@numbersOfColumnsToUse}'
92 sm:
93 classPattern: 'col-sm-{@numbersOfColumnsToUse}'
94 md:
95 classPattern: 'col-md-{@numbersOfColumnsToUse}'
96 lg:
97 classPattern: 'col-lg-{@numbersOfColumnsToUse}'
98
99 GridRow:
100 __inheritances:
101 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
102 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GridRow'
103 properties:
104 elementClassAttribute: 'row'
105 gridColumnClassAutoConfiguration:
106 gridSize: 12
107 viewPorts:
108 xs:
109 classPattern: 'col-xs-{@numbersOfColumnsToUse}'
110 sm:
111 classPattern: 'col-sm-{@numbersOfColumnsToUse}'
112 md:
113 classPattern: 'col-md-{@numbersOfColumnsToUse}'
114 lg:
115 classPattern: 'col-lg-{@numbersOfColumnsToUse}'
116 renderingOptions:
117 _isCompositeFormElement: true
118 _isGridRowFormElement: true
119
120 ### FORM ELEMENTS: INPUT ###
121 Text:
122 __inheritances:
123 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
124
125 Password:
126 __inheritances:
127 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
128
129 AdvancedPassword:
130 __inheritances:
131 10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Password'
132 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement'
133 properties:
134 elementClassAttribute: 'input-medium'
135 confirmationLabel: ''
136 # Optional description (hint) for the first password input element
137 #passwordDescription: ''
138 confirmationClassAttribute: 'input-medium'
139
140 Textarea:
141 __inheritances:
142 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
143 properties:
144 elementClassAttribute: 'xxlarge'
145
146 Honeypot:
147 __inheritances:
148 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
149 properties:
150 renderAsHiddenField: false
151 styleAttribute: 'position:absolute; margin:0 0 0 -999em;'
152 renderingOptions:
153 _isHiddenFormElement: true
154
155 Hidden:
156 __inheritances:
157 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
158 renderingOptions:
159 _isHiddenFormElement: true
160
161 ### FORM ELEMENTS: HTML5 ###
162 Email:
163 __inheritances:
164 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
165 validators:
166 -
167 identifier: EmailAddress
168
169 Telephone:
170 __inheritances:
171 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
172 validators:
173 -
174 identifier: RegularExpression
175 options:
176 regularExpression: '/^.*$/'
177
178 Url:
179 __inheritances:
180 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
181 validators:
182 -
183 identifier: RegularExpression
184 options:
185 regularExpression: '/^.*$/'
186
187 Number:
188 __inheritances:
189 10: 'TYPO3.CMS.Form.mixins.formElementMixins.TextMixin'
190 validators:
191 -
192 identifier: Number
193
194 ### FORM ELEMENTS: SELECT ###
195 Checkbox:
196 __inheritances:
197 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
198 properties:
199 elementClassAttribute: 'add-on'
200 containerClassAttribute: 'input checkbox'
201 value: 1
202
203 MultiCheckbox:
204 __inheritances:
205 10: 'TYPO3.CMS.Form.mixins.formElementMixins.MultiSelectionMixin'
206 properties:
207 containerClassAttribute: 'input checkbox'
208
209 MultiSelect:
210 __inheritances:
211 10: 'TYPO3.CMS.Form.mixins.formElementMixins.MultiSelectionMixin'
212 properties:
213 elementClassAttribute: 'xlarge'
214
215 RadioButton:
216 __inheritances:
217 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SingleSelectionMixin'
218 properties:
219 elementClassAttribute: 'xlarge'
220
221 SingleSelect:
222 __inheritances:
223 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SingleSelectionMixin'
224
225 ### FORM ELEMENTS: CUSTOM ###
226 DatePicker:
227 __inheritances:
228 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
229 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\DatePicker'
230 properties:
231 elementClassAttribute: 'small form-control'
232 timeSelectorClassAttribute: 'mini'
233 timeSelectorHourLabel: ''
234 timeSelectorMinuteLabel: ''
235 dateFormat: 'Y-m-d'
236 enableDatePicker: true
237 displayTimeSelector: false
238
239 StaticText:
240 __inheritances:
241 10: 'TYPO3.CMS.Form.mixins.formElementMixins.ReadOnlyFormElementMixin'
242 properties:
243 text: ''
244
245 ContentElement:
246 __inheritances:
247 10: 'TYPO3.CMS.Form.mixins.formElementMixins.ReadOnlyFormElementMixin'
248 properties:
249 contentElementUid: ''
250
251 ### FORM ELEMENTS: UPLOADS ###
252 FileUpload:
253 __inheritances:
254 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FileUploadMixin'
255 properties:
256 allowedMimeTypes: ['application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.oasis.opendocument.text', 'application/pdf']
257
258 ImageUpload:
259 __inheritances:
260 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FileUploadMixin'
261 properties:
262 allowedMimeTypes: ['image/jpeg', 'image/png', 'image/bmp']
263 elementClassAttribute: 'lightbox'
264 imageLinkMaxWidth: 500
265 imageMaxWidth: 500
266 imageMaxHeight: 500
267
268 ### FINISHERS ###
269
270 finishersDefinition:
271 Closure:
272 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\ClosureFinisher'
273 options:
274 #closure:
275
276 Confirmation:
277 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\ConfirmationFinisher'
278 #options:
279 #message: ''
280 #contentElementUid: 0
281 #typoscriptObjectPath: 'lib.tx_form.contentElementRendering'
282
283 EmailToSender:
284 __inheritances:
285 10: 'TYPO3.CMS.Form.mixins.finishersEmailMixin'
286
287 EmailToReceiver:
288 __inheritances:
289 10: 'TYPO3.CMS.Form.mixins.finishersEmailMixin'
290
291 DeleteUploads:
292 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\DeleteUploadsFinisher'
293
294 FlashMessage:
295 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\FlashMessageFinisher'
296 #options:
297 #messageBody: ''
298 #messageTitle: ''
299 #messageArguments: {}
300 #messageCode: 0
301 #severity: 0
302
303 Redirect:
304 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\RedirectFinisher'
305 #options:
306 #pageUid: 1
307 #additionalParameters: ''
308 #delay: 0
309 #statusCode: 303
310
311 SaveToDatabase:
312 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\SaveToDatabaseFinisher'
313 #options:
314 #table: ''
315 #mode: 'insert'
316 #whereClause: []
317 #elements:
318 # <elementIdentifier>:
319 # mapOnDatabaseColumn: <databaseColumnName>
320 # saveFileIdentifierInsteadOfUid: false
321 # skipIfValueIsEmpty: false
322 #databaseColumnMappings:
323 # <databaseColumnName>:
324 # value: 'someValue'
325 # skipIfValueIsEmpty: false
326
327 ### VALIDATORS ###
328 validatorsDefinition:
329 NotEmpty:
330 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\NotEmptyValidator'
331 DateTime:
332 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\DateTimeValidator'
333 Alphanumeric:
334 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\AlphanumericValidator'
335 Text:
336 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\TextValidator'
337 StringLength:
338 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\StringLengthValidator'
339 #options:
340 #minimum: 0
341 #maximum: 0
342 EmailAddress:
343 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\EmailAddressValidator'
344 Integer:
345 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\IntegerValidator'
346 Float:
347 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\FloatValidator'
348 Number:
349 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\NumberValidator'
350 NumberRange:
351 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\NumberRangeValidator'
352 #options:
353 #minimum: 0
354 #maximum: 0
355 RegularExpression:
356 implementationClassName: 'TYPO3\CMS\Extbase\Validation\Validator\RegularExpressionValidator'
357 #options:
358 #regularExpression: '/^.*$/'
359 Count:
360 implementationClassName: 'TYPO3\CMS\Form\Mvc\Validation\CountValidator'
361 #options:
362 #minimum: 0
363 #maximum: 0
364
365 ########### MIXINS ###########
366 mixins:
367 translationSettingsMixin:
368 translation:
369 translationFile: 'EXT:form/Resources/Private/Language/locallang.xlf'
370 #translatePropertyValueIfEmpty: true
371
372 ########### FORM ELEMENT MIXINS ###########
373 formElementMixins:
374 BaseFormElementMixin: []
375 # The form element type is chosen as the template name by default.
376 # If you want another name you can set it with 'templateName'
377 #templateName: 'CustomTemplateName'
378
379 ReadOnlyFormElementMixin:
380 __inheritances:
381 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
382 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement'
383
384 FormElementMixin:
385 __inheritances:
386 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
387 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\GenericFormElement'
388 properties:
389 containerClassAttribute: 'input'
390 elementClassAttribute: ''
391 elementErrorClassAttribute: 'error'
392 #gridColumnClassAutoConfiguration:
393 # viewPorts:
394 # xs:
395 # numbersOfColumnsToUse: ''
396 # sm:
397 # numbersOfColumnsToUse: ''
398 # md:
399 # numbersOfColumnsToUse: ''
400 # lg:
401 # numbersOfColumnsToUse: ''
402
403 TextMixin:
404 __inheritances:
405 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
406
407 SelectionMixin:
408 __inheritances:
409 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
410
411 SingleSelectionMixin:
412 __inheritances:
413 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SelectionMixin'
414
415 MultiSelectionMixin:
416 __inheritances:
417 10: 'TYPO3.CMS.Form.mixins.formElementMixins.SelectionMixin'
418
419 FileUploadMixin:
420 __inheritances:
421 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin'
422 implementationClassName: 'TYPO3\CMS\Form\Domain\Model\FormElements\FileUpload'
423 properties:
424 saveToFileMount: '1:/user_upload/'
425
426 finishersEmailMixin:
427 implementationClassName: 'TYPO3\CMS\Form\Domain\Finishers\EmailFinisher'
428 options:
429 #subject: ''
430 #recipientAddress: ''
431 #recipientName: ''
432 #senderAddress:
433 #senderName: ''
434 #replyToAddress: ''
435 #carbonCopyAddress: ''
436 #blindCarbonCopyAddress: ''
437 #format: 'html'
438 #attachUploads: true
439 #translation:
440 # language: 'default'
441 # {@format} depends the 'format' value
442 templateName: '{@format}.html'
443 templateRootPaths:
444 10: 'EXT:form/Resources/Private/Frontend/Templates/Finishers/Email/'
445 #partialRootPaths: []
446 #layoutRootPaths: []
447 #variables: {}