PDA

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



rakesh.mmp
13 Oct 2014, 3:05 AM
Hi,

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

Thanks & regards
Rakesh

slemmon
14 Oct 2014, 4:23 PM
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/apidocs/#!/api/Ext.form.field.VTypes

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