Results 1 to 2 of 2

Thread: text field vtype (validation type) url need not have to accept "http://" madatorily

  1. #1
    Sencha User
    Join Date
    May 2014
    Posts
    63
    Vote Rating
    1
      0  

    Default text field vtype (validation type) url need not have to accept "http://" madatorily

    Hi,

    Can anyone please tell me how to make [vtype : "url"], need not have to compulsorily take "http://" ?
    Please help.

    Thanks & regards
    Rakesh

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505
    Vote Rating
    255
      0  

    Default

    You'll need to have a valid regEx expression first so that you can apply it to the VTypes singleton.
    http://docs.sencha.com/extjs/5.0/api...m.field.VTypes

    Once you have that we can help you set that validation regex into a custom vtype.

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
  •