Validate pin codes or phone no.s

I have one doubt
i want to validate the some field in my form such as pincode ,phone number ....
wheather the pincode exceed 6 digit i need to get error and phone num  exceed 10 or 12
i need to get error message...
For this validation what code we have to

please reply

  • Hi

    Basic expression can be like:-

    IF STRLEN("Phone No.")>10 THEN
    ERROR('No. of digits should not be more than 10');
  • Hii

      you can set property maxlength for both form fields (pincode for 6 and phone no for 10)  in Nav 2009 version Form

    Property. and you can also refer Manjushree suggestion  for coding EXP.

Related