1. #1
    Ext User
    Join Date
    Aug 2007
    Posts
    78
    Vote Rating
    0
    nromanel is on a distinguished road

      0  

    Default Binding Fields to a Form for Validation?

    Binding Fields to a Form for Validation?


    Hi All...

    I have fields placed around my page using the following:

    Code:
    var weekNumField = new Ext.form.NumberField({
    	id: 'weeklyNum-field',
    	allowDecimals: false,
    	maxValue: 52,
    	minValue: 1,
    	allowNegative: false,
            allowBlank: false,
    	renderTo:'weeklyNum',
    	name:'RecurEvery',
    	value: '1',
    	width: 25,
    	disabled: true
    });
    And the target for these fields are within a label in a form panel:
    Code:
    {
    xtype:'label',
    cls:'x-form-item',
    html:'Recur every <span id="weeklyNum"></span> week(s) on:'  
    }
    When I submit the form, the field is not checked for validity.

    If the field is invalid (by simply clicking into the field and leaving it empty) the form will still submit.

    Do I need to check for this manually in the listener for the submit button? Or is there some way to bind this field to the form?

    Thanks for the help!!

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Do not cross-post or post same post more than once. It only decreases you chance to get help.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi