Issue Bug Closed

#15034Radio button validation does not work if there is only one radio button

old_gunthersc 10/12/05, 10:16 updated 08/12/06, 14:22

Description

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.

This is easily fixed by changing the code as seen in the file attached.
(issue imported from #M1578)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.