Hi!
I try to validate a radio button and two fields. My form looks like:
In the tab =Validation=, at =12- validate-one-required=, I added "contact".
In =validation.js= I changed the code under =validate-one-required= to handle the array contact[], but it does not work.
I also tried in the tab =Validation=: "contact[]", but only something like "contact[contact]" seems to pass one index of the array.
How can I pass the array to validation.js?
I try to validate a radio button and two fields. My form looks like:
<input tabindex="7" type="text" name="contact[telefoon]">
<input tabindex="8" type="text" name="contact[email]">
<input tabindex="9" name="contact[contact]" id="contact" type="radio" value="telefoon" checked>Telefoon.
<input name="contact[contact]" type="radio" value="email">E-mail.
In the tab =Validation=, at =12- validate-one-required=, I added "contact".
In =validation.js= I changed the code under =validate-one-required= to handle the array contact[], but it does not work.
I also tried in the tab =Validation=: "contact[]", but only something like "contact[contact]" seems to pass one index of the array.
How can I pass the array to validation.js?