Form

enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
recipientEmail = mats@pixelant.se
senderEmail = info@foundation.pixelant.se
subject = Test form
}
}
10 = FIELDSET
10 {
legend {
value = Form header - Legend
}
10 = TEXTLINE
10 {
name = textfield
label {
value = Text field
}
}
20 = PASSWORD
20 {
name = passwordfield
label {
value = Password
}
}
30 = TEXTLINE
30 {
name = email
label {
value = Email
}
}
40 = TEXTAREA
40 {
cols = 40
rows = 5
name = textarea
label {
value = Text area
}
}
50 = FILEUPLOAD
50 {
name = uploadfield
label {
value = Upload
}
}
60 = SELECT
60 {
name = select
label {
value = Select
}
10 = OPTION
10 {
data = Option 1
}
20 = OPTION
20 {
data = Option 2
}
30 = OPTION
30 {
data = Option 3
}
}
70 = RADIOGROUP
70 {
class = fieldset-subgroup
legend {
value = Radio boxes
}
name = radioboxes
10 = RADIO
10 {
label {
value = Option 1
}
}
20 = RADIO
20 {
label {
value = Option 2
}
}
30 = RADIO
30 {
label {
value = Option 3
}
}
}
80 = CHECKBOXGROUP
80 {
class = fieldset-subgroup
legend {
value = Check boxes
}
name = checkboxes
10 = CHECKBOX
10 {
label {
value = Option 1
}
}
20 = CHECKBOX
20 {
label {
value = Option 2
}
}
30 = CHECKBOX
30 {
label {
value = Option 3
}
}
}
90 = CHECKBOX
90 {
name = singlecheckbox
label {
value = Just a single checkbox
}
}
100 = RADIO
100 {
name = singleradio
label {
value = Just a single radio
}
}
110 = SUBMIT
110 {
name = 19
value = Submit form
}
}
rules {
1 = required
1 {
breakonerror= 0
showMessage =
message = Required
error = This field is required
element = textfield
}
2 = required
2 {
breakonerror= 0
showMessage = 1
message = Required
error = This field is required
element = email
}
3 = email
3 {
breakonerror= 0
showMessage =
message = (john.doe@domain.com)
error = This is not a valid email address
element = email
}
}