Bug #104075
closedTCA renderType "selectCheckBox" has lost its "Revert selection"-button
0%
Description
Introduced by https://forge.typo3.org/issues/104012 the TCA renderType "selectCheckBox" has lost its "Revert selection"-button.
Before:¶
After:¶
Also see the docs:¶
Files
Updated by Ayke Halder 5 months ago
- Related to Task #104012: Unify toggle link occurrences: Use data-multi-record-selection in "Access Rights" of backend user and backend usergroups added
Updated by Jasmina Ließmann 5 months ago
- Related to Bug #104062: Revert selection button in selectCheckBoxElement does ot do anything on initial load added
Updated by Jasmina Ließmann 5 months ago · Edited
The patch you are referring to with #104012 was merged to main only (see https://review.typo3.org/c/Packages/TYPO3.CMS/+/84602 ).
For TYPO3 v12 LTS, a separate patch was implemented to fix the faulty behavior of the "Revert selection" button (see https://review.typo3.org/c/Packages/TYPO3.CMS/+/84628)
Updated by Ayke Halder 5 months ago
- TYPO3 Version changed from 12 to 13
The button is not available in TYPO3 13 anymore. Is it intentional?
Updated by Oliver Bartsch 5 months ago
- Status changed from New to Closed
Hi Ayke,
yes the removal of the button is intentional. The button did not provide real benefit and also lead to inconsistency in the user guidance as it was the only place, such button existed. We therefore decided to remove the button until we have a general solution for a "is dirty" check with a "undo changes" functionality in FormEngine.
Updated by Ayke Halder 5 months ago
The only one place where I actually used it was the permission tables for BE-groups.
Maybe we can add an optional entry to this new check-box-toggle-select-menu "Restore selection".
Something like this might work
Checkboxes initial state:¶
<input type="checkbox" name="interest" value="coding" />
<input type="checkbox" name="interest" value="music" checked />
After clicking them:¶
<input type="checkbox" name="interest" value="coding" checked data-dirty-restore="unchecked" />
<input type="checkbox" name="interest" value="music" data-dirty-restore="checked" />
Clicking them again:¶
<input type="checkbox" name="interest" value="coding" />
<input type="checkbox" name="interest" value="music" checked />