This is 100% my mistake which I'm blaming on lack of sleep and caffiene.
But I thought I'd post it to help others who may run into this issue.
I was writing some new ValidateThis rules and one was not firing... I assumed I was doing something wrong in my rules file so I was trying all sorts of iterations with no success.
My rules looked like:
<property name="PID" desc="PID"> <rule type="required" contexts="Coordinator" failureMessage="A PID is required if the provider is a university employee."> <param name="DependentPropertyName" value="employeeTypeId"> <param name="DependentPropertyValue" value="1"> </rule> </property>
What I should have remembered is:
- That ValidateThis writes both your server and client side validations (which is sooo nice!)
- The client side is done with jQuery
So if we revisit my ValidateThis rule I had:
<property name="PID" desc="PID"/>
But in my markup (I'm using cfUniForm) I had:
<uform:field label="PID" name="pid" type="text" .../>