#69957EXT:form - Fix some problems with Container elements
Description
There are some findings on RADIOGROUP and OPTIONGROUP.
- values are not visualized on the confirmAction view
- after the validation prohibited to go from showAction to confirmAction, all options of the option-group are checked/activated, for the radio-group, the selected value is not updated, it uses the default value defined in TypoScript
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
layout {
label = <b><em><labelvalue /></em></b>
}
senderEmail = foo@test.com
recipientEmail = foo@test.com
}
}
10 = HEADER
10 {
class = content-header
headingSize = h1
content = Some form...
}
20 = FIELDSET
20 {
legend {
value = Yay!
}
10 = TEXTLINE
10 {
name = firstName
placeholder = First name
label {
value = First Name
}
}
20 = TEXTLINE
20 {
name = lastName
placeholder = Last name
label {
value = Last Name
}
}
30 = TEXTLINE
30 {
name = email
placeholder = oliver@hader.name
label {
value = E-Mail
}
}
40 = CHECKBOXGROUP
40 {
class = fieldset-subgroup
legend {
value = Preference
}
name = preference
10 = CHECKBOX
10 {
label {
value = Option 1
}
}
20 = CHECKBOX
20 {
label {
value = Option 2
}
}
30 = CHECKBOX
30 {
label {
value = Option 3
}
}
}
50 = RADIOGROUP
50 {
class = fieldset-subgroup
legend {
value = Choice
}
name = choice
10 = RADIO
10 {
label {
value = Option 1
}
}
20 = RADIO
20 {
label {
value = Option 2
}
}
30 = RADIO
30 {
checked = checked
label {
value = Option 3
}
}
}
}
30 = SUBMIT
30 {
name = submit
value = Submit
}
rules {
1 = required
1 {
breakOnError = 0
showMessage = 1
message = Required
error = This field is required
element = email
}
2 = email
2 {
breakOnError = 0
showMessage = 1
message = (john.doe@domain.com)
error = This is not a valid email address
element = email
}
}