Validation driving me nuts |
[eluser]nl_vinyl[/eluser]
Hi, I am trying to validate 2 radio buttons. They share the same name and have no default checked: Code: <label class="radio"> And I am displaying the errors in my form like this: Code: <?php if(validation_errors()): ?> My controller has the rules set up like this: Code: $this->form_validation->set_rules('verrekening', 'Verrekening', 'required'); If i do not select a checkbox, I am returned to the form but not error is shown. If I select an option the form is processed. I cant find what I am doing wrong. If I chance the radiobuttons in a simple text field and leave that empty the error is shown. Does the validation helper have an issue with radio buttons?
[eluser]nl_vinyl[/eluser]
Solved: http://ellislab.com/forums/viewthread/233056/ Nasty solution, but works. |
Welcome Guest, Not a member yet? Register Sign In |