Hello Friends,

 

I have a DynaValidatorForm in which there 2 String properties: action and 
student_birth_date.

I have a date validation like this:

 

            <field

                property=" student_birth_date"

                depends="required,date">

                    <arg key="תאריך המועד" resource="false" position="0"/>

                    <arg key="MM/YY" resource="false" position="1"/>

                              <var>

                          <var-name>datePatternStrict</var-name>

                          <var-value>MM/yy</var-value>

                              </var>                   

            </field>

 

 

I need that the validation above to depend on the value of the "action" 
property in the Form (i.e. if action equals "create" or "update" then do the 
validation, else ignore it)

 

How can I do that?

 

Thanks

Rivka

Reply via email to