Testseite für Formulare

Die 2 gängigsten Möglichkeiten, in Typo3 Formualre zu erstellen.

Links die Extension "Fomrhandler" mit einem Standard-Formular, rechts die Typo3-Core Extension "Forms". Oftmals reicht eine "Forms" bereits aus, um für den Kunden passende Formulare erstellen zu können, bei komplexeren Formularen empfiehlt sich jedoch der "Formhandler".

Formular mit Formhandler

Formular-Variante mit der integrierten Typo3 Forms Extension

method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
recipientEmail = dominik.tome@stebio.at
senderEmail = email
subject = Anfrage über Website
}
}
10 = FIELDSET
10 {
class = predefined-name fieldset-subgroup fieldset-horizontal label-below
legend {
value = Full name
}
10 = TEXTLINE
10 {
label {
value = First name
}
name = firstName
size = 10
layout (
)
}
20 = TEXTLINE
20 {
label {
value = Last name
}
name = lastName
size = 15
layout (
)
}
}
20 = FIELDSET
20 {
class = predefined-name fieldset-subgroup fieldset-horizontal label-below
legend {
value = Kontaktdaten
}
10 = TEXTLINE
10 {
name = email
label {
value = Email
}
}
20 = TEXTLINE
20 {
name = phone
label {
value = Telefon
}
}
}
30 = FIELDSET
30 {
class = predefined-name fieldset-subgroup fieldset-horizontal label-below
legend {
value =
}
10 = TEXTAREA
10 {
cols = 40
name = message
rows = 5
label {
value = Ihre Nachricht
}
}
}
40 = FIELDSET
40 {
class = predefined-name fieldset-subgroup fieldset-horizontal label-below
legend {
value =
}
10 = RESET
10 {
name = 8
value = Zurücksetzen
}
20 = SUBMIT
20 {
name = 9
value = Absenden
}
}
rules {
1 = required
1 {
breakonerror= 0
showMessage = 1
message = *
error = Required
element = firstName
}
2 = required
2 {
breakonerror= 0
showMessage = 1
message = *
error = Required
element = lastName
}
3 = required
3 {
breakonerror= 0
showMessage = 1
message = Required
error = This field is required
element = email
}
4 = email
4 {
breakonerror= 0
showMessage = 1
message = (john.doe@domain.com)
error = This is not a valid email address
element = email
}
}