Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Cactiveform Radiobuttonlist Required not working properly on clientValidation #2238

Open
heyhoo opened this Issue · 1 comment

2 participants

@heyhoo

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:
http://www.yiiframework.com/forum/index.php/topic/41551-cactiveform-radiobuttonlist-required-giving-errors

@mdomba
Collaborator

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.