#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    60
    Rep Power
    4

    Validate a specific number format in a text field


    Hi Peers,

    i want the user to fill up a certain field with specific format number,,
    like :

    CAPITAL field : i need that format to be submiotted
    ( -____,____,____.__) or it will fire an error message...

    how can i build that ?

    So far i have put in my update page and i got the number formatted this way but my problem is when users try to submitt the 1st time , i want their entriesd to be validated..



    thanks
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,273
    Rep Power
    968
    If you mean in the form itself, you can do this with the mask attribute of cfform, or with JavaScript. If you mean validating it on the server just use the same validation you use when you process the update (since you said that already works).

IMN logo majestic logo threadwatch logo seochat tools logo