[TYPO3-german] Formhandler: Mehrere unabhängige Conditions im Formular

Ralf Schlömer, TYPO3-Mailing-Lis Ralf Schlömer, TYPO3-Mailing-Lis
Wed May 22 13:52:52 CEST 2013


Hi Reinhard

Danke, das war es.
Eigentlich hatte ich es so verstanden, dass nach dem "if" erst einmal der Step kommt, für den die Condition greifen soll. Also "if.1." für den ersten Step.
Da lag ich wohl falsch. :D

Ralf

-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-bounces at lists.typo3.org] Im Auftrag von Reinhard Führicht
Gesendet: Mittwoch, 22. Mai 2013 13:20
An: typo3-german at lists.typo3.org
Betreff: Re: [TYPO3-german] Formhandler: Mehrere unabhängige Conditions im Formular

Hallo Ralf,

Am 22.05.2013 10:19, schrieb Ralf Schlömer:
> ...
> if.1 {
>    conditions {
>      OR.1.AND1 = fieldA=1
>      isTrue {
>        1.validators.1.config.fieldConf.fieldB.errorCheck.1 = required
>      }
>      OR2.AND1 = fieldC=1
>      isTrue {
>         1.validators.1.config.fieldConf.fieldD.errorCheck.1 = required
>      }
>    }
> }
> ...
>
> oder
>
> ...
> if.1 {
>    1.conditions {
>      OR.1.AND1 = fieldA=1
>      isTrue {
>        1.validators.1.config.fieldConf.fieldB.errorCheck.1 = required
>      }
>    }
>    2.conditions {
>      OR1.AND1 = fieldC=1
>      isTrue {
>         1.validators.1.config.fieldConf.fieldD.errorCheck.1 = required
>      }
>    }
> }
> ...

so müsste es eigentlich klappen:

if {
   1.conditions {
     OR.1.AND1 = fieldA=1
     isTrue {
       1.validators.1.config.fieldConf.fieldB.errorCheck.1 = required
     }
   }
   2.conditions {
     OR1.AND1 = fieldC=1
     isTrue {
        1.validators.1.config.fieldConf.fieldD.errorCheck.1 = required
     }
   }
}


Also statt "if.1" nur "if".

Viele Grüße,
Reinhard

-- 
--------------------------------
http://www.typo3-formhandler.com
--------------------------------
_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list