Project

General

Profile

Actions

Feature #99384

closed

Dynamic refresh instead of save and reload in backend forms with displayCond and reload

Added by Sybille Peters almost 2 years ago. Updated 6 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-12-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
backend ux, backend usability, backend user interface, TCA, FormEngine
Complexity:
Sprint Focus:

Description

In TCA it is possible to make form fields disappear based on the conditions of other fields (displayCond).

For this to work, you have to add a "reload" to the field it depends on so that the form will be saved and reloaded.

problems

  • the dialog asking if one should save and reload is annoying when one is still filling out the fields
  • in some cases it is unnecessarily displayed (e.g. if some fields are displayed depending on what is seletected in a list and not all changes in the list need the reload)
  • the field is saved even though the editor is not done
  • feels clunky and not editor friendly

Preferred change

Suggested alternative would be to do this behaviour in JavaScript in the core so the form is dynamically displayed.

Alternatives as developer

1. use displayCond and reload for the fields which should be displayed conditionally. Which means a dialog will appear on every change asking if we should continue, even for the selections where it is not relevant
2. Just show all the fields which clutters the user interface with unused options.
3. Write the code to display fields conditionally in JavaScript yourself which is extra work and makes the extensions difficult to maintain. For example if you change the field type you might have to adapt the JavaScript code.
4. Other solutions???


Files

tca_displaycond_javascript.gif (162 KB) tca_displaycond_javascript.gif Sybille Peters, 2023-01-05 16:16
tca_display_cond_classic.gif (950 KB) tca_display_cond_classic.gif Sybille Peters, 2023-01-05 16:24
dialog_refresh_save_cancel.png (10.9 KB) dialog_refresh_save_cancel.png Sybille Peters, 2023-04-23 07:36

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Epic #93528: Backlog of UX ideas for EditorsNew2010-11-11

Actions
Related to TYPO3 Core - Feature #103917: Make it possible to add elements to the result array in FormEngine for all fieldsClosedSybille Peters2024-05-26

Actions
Actions #1

Updated by Sybille Peters almost 2 years ago

  • Description updated (diff)
Actions #3

Updated by Sybille Peters almost 2 years ago

  • Description updated (diff)
Actions #5

Updated by Sybille Peters over 1 year ago

  • File dialog_refresh_save_cancel.png dialog_refresh_save_cancel.png added
  • Subject changed from Dynamic refresh instead of save and reload in backend forms with displayCond and reload for smoother user experience to Dynamic refresh instead of save and reload in backend forms with displayCond and reload
  • Description updated (diff)
Actions #6

Updated by Sybille Peters over 1 year ago

  • Related to Epic #93528: Backlog of UX ideas for Editors added
Actions #7

Updated by Sybille Peters 6 months ago

  • Related to Feature #103917: Make it possible to add elements to the result array in FormEngine for all fields added
Actions #8

Updated by Gerrit Code Review 6 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84404

Actions #9

Updated by Gerrit Code Review 6 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84404

Actions #10

Updated by Gerrit Code Review 6 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84404

Actions #11

Updated by Gerrit Code Review 6 months ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84404

Actions #13

Updated by Sybille Peters 6 months ago

  • Status changed from Under Review to Rejected
Actions

Also available in: Atom PDF