Results 1 to 3 of 3

Thread: can we have 2vtypes on the same textfield

  1. #1

    Default can we have 2vtypes on the same textfield

    I have a registration form in which there is a text field for url input...
    I even have the vtype url for the same but now i want that the user should only input the url which doesnt exist in the DB...
    this is my code
    xtype : 'textfield',
    fieldLabel : '<font color=#15428B><b>Company URL</b></font><font color=red>*</font>',
    id : 'cmpURL',
    name : 'companyURL',
    vtype : 'url',
    validationEvent : '',
    allowBlank : false,
    width : 170,

    now i even want to check where the user is inputing unique url(Which doesnt have entries in my D...
    plz reply

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    You have will have to create your own vtype.

    Look at the API docs here and look at the first example with time. It shows how to create one with a function.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    The Netherlands


    Or you could call two vtypes from the validator function.

Similar Threads

  1. Replies: 5
    Last Post: 10 Nov 2010, 7:28 PM
  2. Witch is faster Ext.form.TextField or xtype:'textfield' ?
    By lassaad in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 7 Sep 2009, 5:12 AM
  3. Replies: 4
    Last Post: 9 May 2008, 10:50 PM
  4. Putting a textfield inside a column, textfield loses fieldlabel
    By sublimespot in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 14 Mar 2008, 9:37 AM

Posting Permissions

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