[TYPO3-english] Formhandler and validating generic radio buttons

Reinhard Führicht rf at typoheads.at
Thu May 17 17:50:40 CEST 2012


Hi Michael,

Am 17.05.2012 16:12, schrieb Michael Lykke:
>
> I create the field in step1.html like this:
> ###master_radio-yesno_question1###
>
> Which generates this markup:
> <div class="type-check">
> <label for="radio-yesno-question1-yes">Some question? </label>
> <div>
> <input type="radio" id="radio-yesno-question1-yes"
> name="form-multistep[radio-yesno-question1]" value="Yes">
> <label for="radio-yesno-koncert-yes">Yes</label>
> </div>
> <div>
> <input type="radio" id="radio-yesno-question1-no"
> name="form-multistep[radio-yesno-question1]" value="No">
> <label for="radio-yesno-question1-no">No</label>
> </div>
> </div>
>
> And validating it like this:
> 1.validators {
> 1.class = Validator_Default
> 1.config.fieldConf {
> question1.errorCheck {
> 1 = required
> }
> }
> }
>
> Can anyone help, please?

If the generated field has the name "radio-yesno-question1" shouldn't 
the validator config look like this?

1.validators {
   1.class = Validator_Default
   1.config.fieldConf {
     radio-yesno-question1.errorCheck {
       1 = required
     }
   }
}

Regards,
Reinhard
-- 
http://www.typo3-formhandler.com


More information about the TYPO3-english mailing list