Bug #67198

Story #69712: Further FormEngine development

requestUpdate does not work on Group Elements

Added by Philipp Wrann about 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-05-29
Due date:
% Done:

0%

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

Description

If i set a group element with size1, so it acts like a select box, the requestUpdate feature does not work.

I prefer using group over select fields because much less data is loaded from persistence. How can i fix this? I thould about added a custom wizard, that simply replaces the html for the group item and adds some javascript, but i dont know if there is an event i can use.

A onchange on the hidden input or the select does not work because the value is set by Javascript.


Related issues

Duplicated by TYPO3 Core - Bug #52563: requestUpdate not working when selecting by suggest field Closed 2013-10-06

Associated revisions

Revision 38a1bc5d (diff)
Added by Christian Kuhn over 2 years ago

[!!!][TASK] Improve flex and TCA handling in FormEngine

The patch adapts a series of nasty form engine areas to more solid
code. The evaluate condition code is rewritten and works much better
in flex form scenarios. The suggest wizard and svg tree are much
more solid in flex forms. The group element is rewritten
towards a better readable and easier to refactor code, dropping
method dbFileIcons(). A bunch of issues is resolved along the way.

  • TCA "default" now works in flex form section container elements
  • The "displayCond" parser is now strict and throws exceptions on
    invalid syntax and wrong referenced fields to help debugging
    faulty display conditions
  • TCA displayCond on flex fields can now be prefixed with the
    sheet name and can reference field values from neighbor sheets
  • TCA displayCond now works with flex section containers
  • TCA flex section container now throw an exception if select or
    group fields configure a MM relation - this is not supported
  • TCA ctrl requestUpdate field is dropped, onChange=reload is now allowed
    not only on flex form fields, but also on normal columns fields
  • TCA tree now works as section container element and initializes
    correctly on new records and new containers
  • GroupElement rewrite to drop dbFileIcons()
  • config option maxitems now optional for type=group and type=select
    and defaults to "many items allowed"
  • inline now works in "fancy" flex situations with "new" records
    by handing the final dataStructureIdentifier around
  • FormEngine no longer loads extJS

Change-Id: Id1d081627529cc1502bb198389e5bd69372815cd
Resolves: #78899
Resolves: #72307
Resolves: #75646
Resolves: #76637
Resolves: #72106
Resolves: #78824
Resolves: #76793
Resolves: #68247
Resolves: #69715
Related: #78460
Related: #67198
Related: #72294
Releases: master
Reviewed-on: https://review.typo3.org/50879
Tested-by: TYPO3com <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>

History

#1 Updated by Philipp Wrann about 4 years ago

It looks like this could only be done in TYPO3\CMS\Recordlist\Browser\ElementBrowser (::762?)

The only way to achieve this without manipulating the core would be to set a javascript interval checking if the field has changed but i think this should go to the core.

When a group value is changed an the field is set as requestUpdate Field it should be updated.

Maybe simply add a dataset-attribute to the target input field that says requestUpdate=1 and if the new value is set from TCEMain the form is submitted like it is a select field.

#2 Updated by Benni Mack about 4 years ago

  • Target version changed from 7.3 (Packages) to 7.4 (Backend)

#3 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#4 Updated by Benni Mack almost 4 years ago

  • Target version changed from 7.5 to 7 LTS
  • Sprint Focus set to Stabilization Sprint

#5 Updated by Tymoteusz Motylewski over 3 years ago

  • Sprint Focus changed from Stabilization Sprint to On Location Sprint

#6 Updated by Christian Kuhn about 3 years ago

  • Sprint Focus deleted (On Location Sprint)

#7 Updated by Christian Kuhn over 2 years ago

  • Parent task set to #69712

Also available in: Atom PDF