[TYPO3-core] Bug #1578: Radio button validation does not work if there is only one radio button
Michael Stucki
michael at typo3.org
Mon Dec 12 20:57:59 CET 2005
Hi Sebastian,
> User writes:
> validateForm() will not correctly validate radio buttons if there is
> only one radio button in a group. This is because fObj.length
> (t3lib/jsfunc.validateform.js line 87) is undefined in this case, and
> therefore the validation loop is never entered and "value" remains
> undefined.
>
> Solution:
> * check if the length of the radio button can be found, if no,
> then only one radio button is in the radio group.
>
> Remarks:
> * Normally, you don't need this case, however, sometimes
> automatically radio buttons are created - and then it can happen
> that just one radio button is shown.
> * Please check the bugtracker reference for a working example.
+1
Michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list