Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Cactiveform Radiobuttonlist Required not working properly on clientValidation #2238

heyhoo opened this Issue · 1 comment

2 participants


when adding a radioButtonList to my form client validation keeps saying that the value can not be blank although you have selected an option.

for example my HTML renders as follows:

<input id="Account_gender_0" value="M" type="radio" name="Account[gender]">
<input id="Account_gender_1" value="F" type="radio" name="Account[gender]">

looks like the problem is in jquery.yiiactiveform.js
It will look for inputID and inputID is set to Account_gender.
The appendix _0 and _1 are not taken into consideration so it will fail to find the selected value.

See also this thread:


Please post your view code for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.