Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

xml validator

 
Ganapathy palanisamy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Report post to moderator
hai,
I working on validation for the phone no.

now i want to all the land line no also . If i am using the landline i need to allow the thy symbol -
so help to validate special symbols and space in phone no.

please help me to finish it.


view plaincopy to clipboardprint?

1. <field name="txtPhoneNo">
2. <field-validator type="requiredstring">
3. <message key="phoneNo.required" />
4. </field-validator>
5. <field-validator type="regex">
6. <param name="expression">^['',0-9]{12}$</param>
7. <message key="phoneNo.valid" />
8. </field-validator>
9.
10. </field>
 
    Bookmark Topic Watch Topic
  • New Topic