Best regards<br />Fredrik
<formset>
<form name="ProductForm">
<field property="mobilephonenumber" depends="validwhen,minlength,maxlength,mask">
<arg key="ProductForm.clientsidevalidation.mobilephonenumber"/>
<var>
<var-name>test</var-name>
<var-value>((submitbutton!="Add product" && submitbutton!="Update product") or (*this* != null))</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
<var>
<var-name>maxlength</var-name>
<var-value>50</var-value>
</var>
<var>
<var-name>mask</var-name>
<var-value>^[0-9]*$</var-value>
</var>
</field>
<field property="productselectlist" depends="validwhen">
<arg key="ProductForm.clientsidevalidation.productselectlist" />
<var>
<var-name>test</var-name>
<var-value>((submitbutton!="Remove product" && submitbutton!="Select product") or (*this* != null))</var-value>
</var>
</field>
</form>
</formset>
"What's in a name? That which we call a rose by any other name would smell just as sweet."<br />(William Shakespeare, Romeo and Juliet, Act II, Scene II)
Best regards<br />Fredrik
is used instead of<var-name>test</var-name>
. I too have used it this manner. I have not checked it out in your particular situation though. Let me work on a test application with your situation; i'll let you know the result asap. By the way is ur validation firing at all..?? or is it just the validwhen case that is not firing..???<var-name>validwhen</var-name>
"What's in a name? That which we call a rose by any other name would smell just as sweet."<br />(William Shakespeare, Romeo and Juliet, Act II, Scene II)
Best regards<br />Fredrik
My English is poor. Sigh!!!
Best regards<br />Fredrik
"What's in a name? That which we call a rose by any other name would smell just as sweet."<br />(William Shakespeare, Romeo and Juliet, Act II, Scene II)
Best regards<br />Fredrik
"What's in a name? That which we call a rose by any other name would smell just as sweet."<br />(William Shakespeare, Romeo and Juliet, Act II, Scene II)
Best regards<br />Fredrik
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|