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

Malte Jansen mail at maltejansen.de
Thu Nov 29 13:54:38 CET 2007


Hi!

On request of Steffen there is now much better documentation.
So here are the new files.

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
> 
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ConditionalRequiredFields_v6_(doc_core_api).txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071129/860f2ef7/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ConditionalRequiredFields_v6_(trunk).patch
Type: text/x-diff
Size: 32745 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071129/860f2ef7/attachment-0001.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T3X_maja_condrequired-0_0_1-z-200711281441.t3x
Type: application/octet-stream
Size: 23197 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071129/860f2ef7/attachment-0001.obj 


More information about the TYPO3-team-core mailing list