Bei dir fehlt die Definition der Validator Klasse. Ansonsten scheint dein Code soweit ok zu sein.
if.1 { conditions { OR1 { AND1 = question1<1 AND2 = question2<1 AND3 = question3<1 } } isTrue { validators { 1.class = Validator_Default 1.config.fieldConf { answers.errorCheck.1 = required } } } } -----Ursprüngliche Nachricht----- Von: typo3-german-boun...@lists.typo3.org [mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von Johannes C. Schulz - EnzephaloN IT-Solutions Gesendet: Montag, 4. November 2013 12:31 An: typo3-german@lists.typo3.org Betreff: [TYPO3-german] Formhandler: mindestens ein von x Feldern muß befüllt sein Hallo typo3-Gemeinde Ich habe hier mit einem Formhandler-Formular das Problem, daß ich einen Check brauche daß eins von drei Feldern befüllt sein muß. Ich habe dazu im Netz einen Ansatz gefunden, der leider noch nicht funktioniert. Deswegen die Bitte an Wissende, mir hier etwas auf die Sprünge zu helfen: plugin.Tx_Formhandler.settings{ if.1{ conditions { OR1 { AND1 = singleroom<1 AND2 = doubleroom<1 AND3 = sharedroom<1 } } isTrue{ validators.1.config.fieldConf{ room.errorCheck.1 = required } } } [.] Im Template steht dann: <div class="csc-mailform-field"> ###error_room_required### <label for="singleroom">###LLL:singleroom### ###required_singleroom###</label> <input type="text" name="formhandler[singleroom]" id="singleroom" value="###value_singleroom###"/> <label for="doubleroom">###LLL:doubleroom### ###required_doubleroom###</label> <input type="text" name="formhandler[doubleroom]" id="doubleroom" value="###value_doubleroom###"/> <label for="sharedroom">###LLL:sharedroom### ###required_sharedroom###</label> <input type="text" name="formhandler[sharedroom]" id="sharedroom" value="###value_sharedroom###" /> Nur wird der Fehler derzeit nicht aufgerufen. Selbst wenn alle Felder leer sind, wird das Formular abgeschickt. Achja: Mir ist eigentlich egal "was" in den Feldern steht - Formhandler erlaubt aber nur = != < und >. Kann man das auch als "notEmpty" bauen? Danke für Eure Hilfe. Johannes _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german