Sep 19th, 2009, 1:16 PM
Hi Checog,
Sure, no problem! For the PHP validation, that's no problem - you can just test for the city value, then run the appropriate validation rules. For JS, you need to use the following rule format:
In that example, field1 will only be validated (checked it's been filled in) if and only if the user has selected Vancouver in the city field.
Hope this helps!
- Ben
Sure, no problem! For the PHP validation, that's no problem - you can just test for the city value, then run the appropriate validation rules. For JS, you need to use the following rule format:
Code:
rules.push("if:city=Vancouver,required,field1,Please enter field 1.");
rules.push("if:city=Seattle,required,field2,Please enter field 2.");
In that example, field1 will only be validated (checked it's been filled in) if and only if the user has selected Vancouver in the city field.
Hope this helps!
- Ben