[eluser]Unknown[/eluser]
I have a form with one select box and two input fields. In the select box you can choose between option a and b. If the user selects option b, he has to enter some data into inputfield X, if option a is selected the field X is optional.
How can I add a form validation rule for this? I tried to use a own callback on filed X, but there I have only access the value of field X, right?
Maybe it is a simple problem, but I'm a freshman in CodeIgniter
Thanks