Results 1 to 2 of 2

Thread: PAN Card (Indian) validator

  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    36
    Vote Rating
    0
      0  

    Default PAN Card (Indian) validator

    Hi, if any one (in India) wants validator for PAN Card Validation they can use the following code and define vtype as 'PANFormat' or you can use maskre:/^[a-zA-Z][a-zA-Z][a-zA-Z][ABCFGHJLPTabcfghjlpt][a-zA-Z][0-9][0-9][0-9][0-9][a-zA-Z]+$/, for the textfield

    Ext.apply(Ext.form.VTypes,{
    alphaNumericRe :/^[a-zA-Z][a-zA-Z][a-zA-Z][ABCFGHJLPTabcfghjlpt][a-zA-Z][0-9][0-9][0-9][0-9][a-zA-Z]+$/,
    PANFormat: function(v) {
    return this.alphaNumericRe.test(v);
    },
    PANFormatText: "Invalid PAN No. format.It must be in 'ABCDE1234F' format"
    });

    Thanks,

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,803
    Vote Rating
    260
      1  

    Default

    Thanks for sharing your work with the community!


    Join me at SenchaCon 2016!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •