Have 2 radio buttons of ID and Name and an input field to enter criteria.
When the ID is selected the criteria the user entered should be numeric.
Should display the user with the appropriate message that only int
value is allowed.
When the Name is selected the criteria the user entered
should be alphanumeric. Should display appropriate message that only
alphanumeric values are allowed.
Tried the below it works great for the second option. Not sure how can I
join
the two conditions.
<formset>
<form name="search">
<field property="criteria" depends="mask">
<msg name="mask" key="error.alphanumeric"/>
<arg0 name="mask" key="lbl.criteria" />
<var>
<var-name>mask</var-name>
<var-value>${alpha_numeric}</var-value>
</var>
</field>
</form>
</formset>
You help is appreciated. Thanks.
_________________________________________________________________
Laugh, share and connect with Windows Live Messenger
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]