Project

General

Profile

Actions

Bug #70278

closed

Epic #69955: Optimize new Extbase/ Fluid based rewrite of EXT:form

EXT:form - wrong Radio / Checkbox handling if no value is set

Added by Ralf Zimmermann over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2015-10-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

  1. Submit the form below.
  2. Now all options are shown at the confirmation page.
  3. Go back to the form.
  4. All options and checkboxes are selected.
  5. This happens if there are no "value" properties are set.

handleIncomingFormValues compares the incoming data with the data from the configuration.
In this case both values are NULL and the comparison is TRUE.
Now the element is marked as selected.

prefix = tx_form
confirmation = 1

postProcessor {
    1 = mail
    1 {
        recipientEmail = your@mail.com
        senderEmail = your@mail.com
    }
}

10 = CHECKBOXGROUP
10 {
    class = fieldset-subgroup
    legend {
        value = Edit this legend
    }
    name = checkboxgroup

    10 = CHECKBOX
    10 {
        label {
            value = Option 1
        }
    }

    20 = CHECKBOX
    20 {
        label {
            value = Option 2
        }
    }

    30 = CHECKBOX
    30 {
        label {
            value = Option 3
        }
    }
}

20 = RADIOGROUP
20 {
    class = fieldset-subgroup
    legend {
        value = Edit this legend
    }
    name = radiogroup

    10 = RADIO
    10 {
        label {
            value = Option 1
        }
    }

    20 = RADIO
    20 {
        label {
            value = Option 2
        }
    }
    30 = RADIO
    30 {
        label {
            value = Option 3
        }
    }
}

30 = CHECKBOX
30 {
    name = checkbox1
    label {
        value = Option 4
    }
}

40 = RADIO
40 {
    name = option1
    label {
        value = Option 5
    }
}

50 = SUBMIT
50 {
    name = 6
    value = Submit form
}
Actions

Also available in: Atom PDF