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

Steffen Kamper steffen at sk-typo3.de
Thu Nov 29 01:14:20 CET 2007


Hi Malte,

"Malte Jansen" <mail at maltejansen.de> schrieb im Newsbeitrag 
news:mailman.1.1196260642.25505.typo3-team-core at lists.netfielders.de...
> 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
>

i really like your idea, but reading your doc i didn't understood. Eg. i 
don't got relations with required check - which one?
but i will check it out next days to see what happens.

vg  Steffen 




More information about the TYPO3-team-core mailing list