[TYPO3-core] RFC: #6173 Conditional Requirment for Fields in BE-Forms

Malte Jansen mail at maltejansen.de
Mon Dec 10 01:05:09 CET 2007


Hi,

I have developed a extension for this:

maja_condition

So it's not need as direct core-patch. If there several request it could 
be added to Typo3 4.3>. So the complex syntax is check by the community 
and not only by the core.


Cheers,

Malte




Malte Jansen schrieb:
> Hi!
> 
> This is an SVN patch request.
> 
> Type: Feature
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=6173
> 
> Branches:
> Trunk
> 
> Problem:
> You can only set a static range(minitems,maxitems) a field or the simple 
> required-flag in the TCA.
> You can not set a field required by a checkbox etc.
> So it is not possible to set up some complex buisness model/logic.
> 
> 
> Solution:
> This patch ;)
> With this patch it is very simple to set some condition for the 
> required-/range-fields.
> 
> 
> Notes:
> You don't need to make a difference between range- and field-array, now 
> it is all stored in the same array. Some double-code in TBE_EDITOR.js is 
> removed.
> 
> You can test the attached extension!
> 
> 
> Summary of technic:
> Every field can get two properties (if defined): trigger,required
> 
> The trigger-part saves the field-type (input etc.) and all fields, which 
> uses the trigger-field in their condition. So it pretty easy if an 
> change occurs in this field to check the all conditions. You only have 
> to define the check in the tceforms.php and TBE_EDITOR.js.
> I have added input,check,radio,range(=minitems,maxitems).
> 
> The required-part contains the Condition as JSON-array with all 
> important informations.
> 
> 
> So I hope this feature will get many positive votes ;)
> 
> 
> Cheers,
> 
> Malte
> 
> 


More information about the TYPO3-team-core mailing list